Lines Matching refs:group
135 int (*mul) (const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
138 int (*precompute_mult) (EC_GROUP *group, BN_CTX *);
139 int (*have_precompute_mult) (const EC_GROUP *group);
189 int (*blind_coordinates)(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx);
190 int (*ladder_pre)(const EC_GROUP *group,
193 int (*ladder_step)(const EC_GROUP *group,
196 int (*ladder_post)(const EC_GROUP *group,
291 EC_GROUP *group;
326 const EC_GROUP *group)
328 return group->meth == point->meth
329 && (group->curve_name == 0
331 || group->curve_name == point->curve_name);
341 void EC_pre_comp_free(EC_GROUP *group);
350 * group->method->mul is 0)
352 int ossl_ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
355 int ossl_ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *);
356 int ossl_ec_wNAF_have_precompute_mult(const EC_GROUP *group);
418 int ossl_ec_GFp_simple_blind_coordinates(const EC_GROUP *group, EC_POINT *p,
420 int ossl_ec_GFp_simple_ladder_pre(const EC_GROUP *group,
423 int ossl_ec_GFp_simple_ladder_step(const EC_GROUP *group,
426 int ossl_ec_GFp_simple_ladder_post(const EC_GROUP *group,
516 int ossl_ec_GFp_nistp224_group_init(EC_GROUP *group);
517 int ossl_ec_GFp_nistp224_group_set_curve(EC_GROUP *group, const BIGNUM *p,
520 int ossl_ec_GFp_nistp224_point_get_affine_coordinates(const EC_GROUP *group,
524 int ossl_ec_GFp_nistp224_mul(const EC_GROUP *group, EC_POINT *r,
528 int ossl_ec_GFp_nistp224_points_mul(const EC_GROUP *group, EC_POINT *r,
532 int ossl_ec_GFp_nistp224_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
533 int ossl_ec_GFp_nistp224_have_precompute_mult(const EC_GROUP *group);
536 int ossl_ec_GFp_nistp256_group_init(EC_GROUP *group);
537 int ossl_ec_GFp_nistp256_group_set_curve(EC_GROUP *group, const BIGNUM *p,
540 int ossl_ec_GFp_nistp256_point_get_affine_coordinates(const EC_GROUP *group,
544 int ossl_ec_GFp_nistp256_mul(const EC_GROUP *group, EC_POINT *r,
548 int ossl_ec_GFp_nistp256_points_mul(const EC_GROUP *group, EC_POINT *r,
552 int ossl_ec_GFp_nistp256_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
553 int ossl_ec_GFp_nistp256_have_precompute_mult(const EC_GROUP *group);
556 int ossl_ec_GFp_nistp521_group_init(EC_GROUP *group);
557 int ossl_ec_GFp_nistp521_group_set_curve(EC_GROUP *group, const BIGNUM *p,
560 int ossl_ec_GFp_nistp521_point_get_affine_coordinates(const EC_GROUP *group,
564 int ossl_ec_GFp_nistp521_mul(const EC_GROUP *group, EC_POINT *r,
568 int ossl_ec_GFp_nistp521_points_mul(const EC_GROUP *group, EC_POINT *r,
572 int ossl_ec_GFp_nistp521_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
573 int ossl_ec_GFp_nistp521_have_precompute_mult(const EC_GROUP *group);
598 int ossl_ec_group_simple_order_bits(const EC_GROUP *group);
632 int ossl_ec_curve_nid_from_params(const EC_GROUP *group, BN_CTX *ctx);
701 * This functions computes a single point multiplication over the EC group,
712 * constant time bets are off (where n is the cardinality of the EC group).
714 * This function expects `group->order` and `group->cardinality` to be well
725 * input parameters `group`, `r`, `scalar` and `ctx` are not NULL.
729 int ossl_ec_scalar_mul_ladder(const EC_GROUP *group, EC_POINT *r,
733 int ossl_ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p,
736 static ossl_inline int ec_point_ladder_pre(const EC_GROUP *group,
740 if (group->meth->ladder_pre != NULL)
741 return group->meth->ladder_pre(group, r, s, p, ctx);
744 || !EC_POINT_dbl(group, r, s, ctx))
750 static ossl_inline int ec_point_ladder_step(const EC_GROUP *group,
754 if (group->meth->ladder_step != NULL)
755 return group->meth->ladder_step(group, r, s, p, ctx);
757 if (!EC_POINT_add(group, s, r, s, ctx)
758 || !EC_POINT_dbl(group, r, r, ctx))
765 static ossl_inline int ec_point_ladder_post(const EC_GROUP *group,
769 if (group->meth->ladder_post != NULL)
770 return group->meth->ladder_post(group, r, s, p, ctx);