Lines Matching defs:group

22 int ossl_ec_GFp_simple_set_compressed_coordinates(const EC_GROUP *group,
32 ctx = new_ctx = BN_CTX_new_ex(group->libctx);
54 if (!BN_nnmod(x, x_, group->field, ctx))
56 if (group->meth->field_decode == 0) {
58 if (!group->meth->field_sqr(group, tmp2, x_, ctx))
60 if (!group->meth->field_mul(group, tmp1, tmp2, x_, ctx))
63 if (!BN_mod_sqr(tmp2, x_, group->field, ctx))
65 if (!BN_mod_mul(tmp1, tmp2, x_, group->field, ctx))
70 if (group->a_is_minus3) {
71 if (!BN_mod_lshift1_quick(tmp2, x, group->field))
73 if (!BN_mod_add_quick(tmp2, tmp2, x, group->field))
75 if (!BN_mod_sub_quick(tmp1, tmp1, tmp2, group->field))
78 if (group->meth->field_decode) {
79 if (!group->meth->field_decode(group, tmp2, group->a, ctx))
81 if (!BN_mod_mul(tmp2, tmp2, x, group->field, ctx))
85 if (!group->meth->field_mul(group, tmp2, group->a, x, ctx))
89 if (!BN_mod_add_quick(tmp1, tmp1, tmp2, group->field))
94 if (group->meth->field_decode) {
95 if (!group->meth->field_decode(group, tmp2, group->b, ctx))
97 if (!BN_mod_add_quick(tmp1, tmp1, tmp2, group->field))
100 if (!BN_mod_add_quick(tmp1, tmp1, group->b, group->field))
105 if (!BN_mod_sqrt(y, tmp1, group->field, ctx)) {
127 kron = BN_kronecker(x, group->field, ctx);
140 if (!BN_usub(y, group->field, y))
148 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
159 size_t ossl_ec_GFp_simple_point2oct(const EC_GROUP *group, const EC_POINT *point,
176 if (EC_POINT_is_at_infinity(group, point)) {
189 field_len = BN_num_bytes(group->field);
202 ctx = new_ctx = BN_CTX_new_ex(group->libctx);
214 if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx))
274 int ossl_ec_GFp_simple_oct2point(const EC_GROUP *group, EC_POINT *point,
309 return EC_POINT_set_to_infinity(group, point);
312 field_len = BN_num_bytes(group->field);
323 ctx = new_ctx = BN_CTX_new_ex(group->libctx);
336 if (BN_ucmp(x, group->field) >= 0) {
342 if (!EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx))
347 if (BN_ucmp(y, group->field) >= 0) {
362 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))