Lines Matching refs:group
89 EC_GROUP *group = NULL; in create_EC_group() local
97 group = EC_GROUP_new_curve_GFp(p, a, b, NULL); in create_EC_group()
98 if (!TEST_ptr(group)) in create_EC_group()
101 generator = EC_POINT_new(group); in create_EC_group()
107 || !TEST_true(EC_POINT_set_affine_coordinates(group, generator, g_x, in create_EC_group()
113 || !TEST_true(EC_GROUP_set_generator(group, generator, order, cof))) in create_EC_group()
127 EC_GROUP_free(group); in create_EC_group()
128 group = NULL; in create_EC_group()
131 return group; in create_EC_group()
134 static int test_sm2_crypt(const EC_GROUP *group, in test_sm2_crypt() argument
158 || !TEST_true(EC_KEY_set_group(key, group)) in test_sm2_crypt()
162 pt = EC_POINT_new(group); in test_sm2_crypt()
164 || !TEST_true(EC_POINT_mul(group, pt, priv, NULL, NULL, NULL)) in test_sm2_crypt()
302 static int test_sm2_sign(const EC_GROUP *group, in test_sm2_sign() argument
327 || !TEST_true(EC_KEY_set_group(key, group)) in test_sm2_sign()
332 pt = EC_POINT_new(group); in test_sm2_sign()
334 || !TEST_true(EC_POINT_mul(group, pt, priv, NULL, NULL, NULL)) in test_sm2_sign()