Lines Matching defs:group
92 int ec_GF2m_simple_set_compressed_coordinates(const EC_GROUP *group,
120 if (!BN_GF2m_mod_arr(x, x_, group->poly))
123 if (!BN_GF2m_mod_sqrt_arr(y, &group->b, group->poly, ctx))
126 if (!group->meth->field_sqr(group, tmp, x, ctx))
128 if (!group->meth->field_div(group, tmp, &group->b, tmp, ctx))
130 if (!BN_GF2m_add(tmp, &group->a, tmp))
134 if (!BN_GF2m_mod_solve_quad_arr(z, tmp, group->poly, ctx)) {
148 if (!group->meth->field_mul(group, y, x, z, ctx))
156 if (!EC_POINT_set_affine_coordinates_GF2m(group, point, x, y, ctx))
173 size_t ec_GF2m_simple_point2oct(const EC_GROUP *group, const EC_POINT *point,
190 if (EC_POINT_is_at_infinity(group, point)) {
203 field_len = (EC_GROUP_get_degree(group) + 7) / 8;
229 if (!EC_POINT_get_affine_coordinates_GF2m(group, point, x, y, ctx))
234 if (!group->meth->field_div(group, yxi, y, x, ctx))
297 int ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
332 return EC_POINT_set_to_infinity(group, point);
335 field_len = (EC_GROUP_get_degree(group) + 7) / 8;
360 if (BN_ucmp(x, &group->field) >= 0) {
367 (group, point, x, y_bit, ctx))
372 if (BN_ucmp(y, &group->field) >= 0) {
377 if (!group->meth->field_div(group, yxi, y, x, ctx))
385 if (!EC_POINT_set_affine_coordinates_GF2m(group, point, x, y, ctx))
390 if (EC_POINT_is_on_curve(group, point, ctx) <= 0) {