Lines Matching defs:group
84 * group order size for the elliptic curve, and we also use this type for
237 /* Precomputation for the group generator. */
1287 int ossl_ec_GFp_nistp224_group_init(EC_GROUP *group)
1290 ret = ossl_ec_GFp_simple_group_init(group);
1291 group->a_is_minus3 = 1;
1295 int ossl_ec_GFp_nistp224_group_set_curve(EC_GROUP *group, const BIGNUM *p,
1323 group->field_mod_func = BN_nist_mod_224;
1324 ret = ossl_ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
1337 int ossl_ec_GFp_nistp224_point_get_affine_coordinates(const EC_GROUP *group,
1345 if (EC_POINT_is_at_infinity(group, point)) {
1411 int ossl_ec_GFp_nistp224_points_mul(const EC_GROUP *group, EC_POINT *r,
1444 pre = group->pre_comp.nistp224;
1451 generator = EC_POINT_new(group);
1461 if (!ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp(group,
1465 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
1502 p = EC_GROUP_get0_generator(group);
1517 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) {
1569 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) {
1597 ret = ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp(group, r, x, y, z,
1609 int ossl_ec_GFp_nistp224_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
1622 EC_pre_comp_free(group);
1637 if (group->generator == NULL)
1639 generator = EC_POINT_new(group);
1644 if (!EC_POINT_set_affine_coordinates(group, generator, x, y, ctx))
1651 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx)) {
1655 if ((!BN_to_felem(pre->g_pre_comp[0][1][0], group->generator->X)) ||
1656 (!BN_to_felem(pre->g_pre_comp[0][1][1], group->generator->Y)) ||
1657 (!BN_to_felem(pre->g_pre_comp[0][1][2], group->generator->Z)))
1732 SETPRECOMP(group, nistp224, pre);
1745 int ossl_ec_GFp_nistp224_have_precompute_mult(const EC_GROUP *group)
1747 return HAVEPRECOMP(group, nistp224);