Lines Matching refs:group
47 static size_t ec_field_size(const EC_GROUP *group)
58 if (!EC_GROUP_get_curve(group, p, a, b, NULL))
123 const EC_GROUP *group = EC_KEY_get0_group(key);
124 const BIGNUM *order = EC_GROUP_get0_order(group);
146 field_size = ec_field_size(group);
152 kG = EC_POINT_new(group);
153 kP = EC_POINT_new(group);
187 if (!EC_POINT_mul(group, kG, k, NULL, NULL, ctx)
188 || !EC_POINT_get_affine_coordinates(group, kG, x1, y1, ctx)
189 || !EC_POINT_mul(group, kP, NULL, P, k, ctx)
190 || !EC_POINT_get_affine_coordinates(group, kP, x2, y2, ctx)) {
278 const EC_GROUP *group = EC_KEY_get0_group(key);
285 const size_t field_size = ec_field_size(group);
344 C1 = EC_POINT_new(group);
350 if (!EC_POINT_set_affine_coordinates(group, C1, sm2_ctext->C1x,
352 || !EC_POINT_mul(group, C1, NULL, C1, EC_KEY_get0_private_key(key),
354 || !EC_POINT_get_affine_coordinates(group, C1, x2, y2, ctx)) {