Lines Matching defs:group

1076  * elliptic curve group itself. Points on the curve are represented in Jacobian
1320 * where the intermediate value gets very close to the group order.
1665 /* Precomputation for the group generator. */
1791 int ossl_ec_GFp_nistp521_group_init(EC_GROUP *group)
1794 ret = ossl_ec_GFp_simple_group_init(group);
1795 group->a_is_minus3 = 1;
1799 int ossl_ec_GFp_nistp521_group_set_curve(EC_GROUP *group, const BIGNUM *p,
1827 group->field_mod_func = BN_nist_mod_521;
1828 ret = ossl_ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
1841 int ossl_ec_GFp_nistp521_point_get_affine_coordinates(const EC_GROUP *group,
1849 if (EC_POINT_is_at_infinity(group, point)) {
1916 int ossl_ec_GFp_nistp521_points_mul(const EC_GROUP *group, EC_POINT *r,
1949 pre = group->pre_comp.nistp521;
1956 generator = EC_POINT_new(group);
1966 if (!ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp(group,
1970 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
2010 p = EC_GROUP_get0_generator(group);
2025 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) {
2077 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) {
2106 ret = ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp(group, r, x, y, z,
2118 int ossl_ec_GFp_nistp521_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
2131 EC_pre_comp_free(group);
2146 if (group->generator == NULL)
2148 generator = EC_POINT_new(group);
2153 if (!EC_POINT_set_affine_coordinates(group, generator, x, y, ctx))
2160 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx)) {
2164 if ((!BN_to_felem(pre->g_pre_comp[1][0], group->generator->X)) ||
2165 (!BN_to_felem(pre->g_pre_comp[1][1], group->generator->Y)) ||
2166 (!BN_to_felem(pre->g_pre_comp[1][2], group->generator->Z)))
2221 SETPRECOMP(group, nistp521, pre);
2234 int ossl_ec_GFp_nistp521_have_precompute_mult(const EC_GROUP *group)
2236 return HAVEPRECOMP(group, nistp521);