Lines Matching refs:group
25 static int group_field_tests(const EC_GROUP *group, BN_CTX *ctx)
30 if (group->meth->field_inv == NULL || group->meth->field_mul == NULL)
38 || !TEST_true(group->meth->field_inv(group, b, BN_value_one(), ctx))
41 || !TEST_true(BN_rand(a, BN_num_bits(group->field) - 1,
43 || !TEST_true(group->meth->field_inv(group, b, a, ctx))
44 || (group->meth->field_encode &&
45 !TEST_true(group->meth->field_encode(group, a, a, ctx)))
46 || (group->meth->field_encode &&
47 !TEST_true(group->meth->field_encode(group, b, b, ctx)))
48 || !TEST_true(group->meth->field_mul(group, c, a, b, ctx))
49 || (group->meth->field_decode &&
50 !TEST_true(group->meth->field_decode(group, c, c, ctx)))
56 if (!TEST_false(group->meth->field_inv(group, b, a, ctx))
61 || !TEST_false(group->meth->field_inv(group, b, group->field, ctx))
80 EC_GROUP *group = NULL;
90 || !TEST_ptr(group = EC_GROUP_new(meth))
94 || !TEST_true(EC_GROUP_set_curve(group, p, a, b, ctx))
95 || !group_field_tests(group, ctx))
102 if (group != NULL)
103 EC_GROUP_free(group);
221 EC_GROUP *group = NULL;
227 if (!TEST_ptr(group = EC_GROUP_new_by_curve_name(nid))
229 || !group_field_tests(group, ctx))
234 if (group != NULL)
235 EC_GROUP_free(group);
389 /* Test EC_KEY_decoded_from_explicit_params on key without a group */
453 /* create group */