Home | History | Annotate | Download | only in ec

Lines Matching refs:ctx

319 int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx)
328 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx)
407 int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
414 return group->meth->group_set_curve(group, p, a, b, ctx);
418 int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx)
425 return group->meth->group_get_curve(group, p, a, b, ctx);
429 int EC_GROUP_set_curve_GF2m(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
436 return group->meth->group_set_curve(group, p, a, b, ctx);
440 int EC_GROUP_get_curve_GF2m(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *ctx)
447 return group->meth->group_get_curve(group, p, a, b, ctx);
462 int EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx)
469 return group->meth->group_check_discriminant(group, ctx);
473 int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ctx)
488 if (!ctx)
489 ctx_new = ctx = BN_CTX_new();
490 if (!ctx)
493 BN_CTX_start(ctx);
494 a1 = BN_CTX_get(ctx);
495 a2 = BN_CTX_get(ctx);
496 a3 = BN_CTX_get(ctx);
497 b1 = BN_CTX_get(ctx);
498 b2 = BN_CTX_get(ctx);
499 b3 = BN_CTX_get(ctx);
502 BN_CTX_end(ctx);
504 BN_CTX_free(ctx);
511 if (!a->meth->group_get_curve(a, a1, a2, a3, ctx) ||
512 !b->meth->group_get_curve(b, b1, b2, b3, ctx))
520 EC_GROUP_get0_generator(b), ctx))
526 if (!EC_GROUP_get_order(a, a1, ctx) ||
527 !EC_GROUP_get_order(b, b1, ctx) ||
528 !EC_GROUP_get_cofactor(a, a2, ctx) ||
529 !EC_GROUP_get_cofactor(b, b2, ctx))
531 BN_CTX_end(ctx);
533 BN_CTX_free(ctx);
540 BN_CTX_end(ctx);
542 BN_CTX_free(ctx);
810 const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx)
822 return group->meth->point_set_Jprojective_coordinates_GFp(group, point, x, y, z, ctx);
827 BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx)
839 return group->meth->point_get_Jprojective_coordinates_GFp(group, point, x, y, z, ctx);
844 const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx)
856 return group->meth->point_set_affine_coordinates(group, point, x, y, ctx);
861 const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx)
873 return group->meth->point_set_affine_coordinates(group, point, x, y, ctx);
878 BIGNUM *x, BIGNUM *y, BN_CTX *ctx)
890 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
895 BIGNUM *x, BIGNUM *y, BN_CTX *ctx)
907 return group->meth->point_get_affine_coordinates(group, point, x, y, ctx);
912 const BIGNUM *x, int y_bit, BN_CTX *ctx)
924 return group->meth->point_set_compressed_coordinates(group, point, x, y_bit, ctx);
929 const BIGNUM *x, int y_bit, BN_CTX *ctx)
941 return group->meth->point_set_compressed_coordinates(group, point, x, y_bit, ctx);
946 unsigned char *buf, size_t len, BN_CTX *ctx)
958 return group->meth->point2oct(group, point, form, buf, len, ctx);
963 const unsigned char *buf, size_t len, BN_CTX *ctx)
975 return group->meth->oct2point(group, point, buf, len, ctx);
979 int EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
991 return group->meth->add(group, r, a, b, ctx);
995 int EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, BN_CTX *ctx)
1007 return group->meth->dbl(group, r, a, ctx);
1011 int EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx)
1023 return group->meth->invert(group, a, ctx);
1043 int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx)
1055 return group->meth->is_on_curve(group, point, ctx);
1059 int EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b, BN_CTX *ctx)
1071 return group->meth->point_cmp(group, a, b, ctx);
1075 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx)
1087 return group->meth->make_affine(group, point, ctx);
1091 int EC_POINTs_make_affine(const EC_GROUP *group, size_t num, EC_POINT *points[], BN_CTX *ctx)
1108 return group->meth->points_make_affine(group, num, points, ctx);
1119 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx)
1123 return ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx);
1125 return group->meth->mul(group, r, scalar, num, points, scalars, ctx);
1129 const EC_POINT *point, const BIGNUM *p_scalar, BN_CTX *ctx)
1139 return EC_POINTs_mul(group, r, g_scalar, (point != NULL && p_scalar != NULL), points, scalars, ctx);
1142 int EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
1146 return ec_wNAF_precompute_mult(group, ctx);
1149 return group->meth->precompute_mult(group, ctx);