Lines Matching refs:group
19 int EC_GROUP_check_named_curve(const EC_GROUP *group, int nist_only, in EC_GROUP_check_named_curve() argument
25 if (group == NULL) { in EC_GROUP_check_named_curve()
38 nid = ossl_ec_curve_nid_from_params(group, ctx); in EC_GROUP_check_named_curve()
46 int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx) in EC_GROUP_check() argument
53 return EC_GROUP_check_named_curve(group, 1, ctx) >= 0 ? 1 : 0; in EC_GROUP_check()
60 if (group == NULL || group->meth == NULL) { in EC_GROUP_check()
66 if ((group->meth->flags & EC_FLAGS_CUSTOM_CURVE) != 0) in EC_GROUP_check()
78 if (!EC_GROUP_check_discriminant(group, ctx)) { in EC_GROUP_check()
84 if (group->generator == NULL) { in EC_GROUP_check()
88 if (EC_POINT_is_on_curve(group, group->generator, ctx) <= 0) { in EC_GROUP_check()
94 if ((point = EC_POINT_new(group)) == NULL) in EC_GROUP_check()
96 order = EC_GROUP_get0_order(group); in EC_GROUP_check()
104 if (!EC_POINT_mul(group, point, order, NULL, NULL, ctx)) in EC_GROUP_check()
106 if (!EC_POINT_is_at_infinity(group, point)) { in EC_GROUP_check()