Lines Matching defs:group
91 int ec_GF2m_simple_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *point,
117 if (!BN_GF2m_mod_arr(x, x_, group->poly)) goto err;
120 if (!BN_GF2m_mod_sqrt_arr(y, &group->b, group->poly, ctx)) goto err;
124 if (!group->meth->field_sqr(group, tmp, x, ctx)) goto err;
125 if (!group->meth->field_div(group, tmp, &group->b, tmp, ctx)) goto err;
126 if (!BN_GF2m_add(tmp, &group->a, tmp)) goto err;
128 if (!BN_GF2m_mod_solve_quad_arr(z, tmp, group->poly, ctx))
142 if (!group->meth->field_mul(group, y, x, z, ctx)) goto err;
149 if (!EC_POINT_set_affine_coordinates_GF2m(group, point, x, y, ctx)) goto err;
165 size_t ec_GF2m_simple_point2oct(const EC_GROUP *group, const EC_POINT *point, point_conversion_form_t form,
182 if (EC_POINT_is_at_infinity(group, point))
199 field_len = (EC_GROUP_get_degree(group) + 7) / 8;
225 if (!EC_POINT_get_affine_coordinates_GF2m(group, point, x, y, ctx)) goto err;
230 if (!group->meth->field_div(group, yxi, y, x, ctx)) goto err;
297 int ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
336 return EC_POINT_set_to_infinity(group, point);
339 field_len = (EC_GROUP_get_degree(group) + 7) / 8;
362 if (BN_ucmp(x, &group->field) >= 0)
370 if (!EC_POINT_set_compressed_coordinates_GF2m(group, point, x, y_bit, ctx)) goto err;
375 if (BN_ucmp(y, &group->field) >= 0)
382 if (!group->meth->field_div(group, yxi, y, x, ctx)) goto err;
390 if (!EC_POINT_set_affine_coordinates_GF2m(group, point, x, y, ctx)) goto err;
393 if (!EC_POINT_is_on_curve(group, point, ctx)) /* test required by X9.62 */