Lines Matching refs:group
92 int ossl_ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p, in ossl_ec_GFp_nist_group_set_curve() argument
100 if ((ctx = new_ctx = BN_CTX_new_ex(group->libctx)) == NULL) in ossl_ec_GFp_nist_group_set_curve()
106 group->field_mod_func = BN_nist_mod_192; in ossl_ec_GFp_nist_group_set_curve()
108 group->field_mod_func = BN_nist_mod_224; in ossl_ec_GFp_nist_group_set_curve()
110 group->field_mod_func = BN_nist_mod_256; in ossl_ec_GFp_nist_group_set_curve()
112 group->field_mod_func = BN_nist_mod_384; in ossl_ec_GFp_nist_group_set_curve()
114 group->field_mod_func = BN_nist_mod_521; in ossl_ec_GFp_nist_group_set_curve()
120 ret = ossl_ec_GFp_simple_group_set_curve(group, p, a, b, ctx); in ossl_ec_GFp_nist_group_set_curve()
128 int ossl_ec_GFp_nist_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, in ossl_ec_GFp_nist_field_mul() argument
134 if (!group || !r || !a || !b) { in ossl_ec_GFp_nist_field_mul()
139 if ((ctx_new = ctx = BN_CTX_new_ex(group->libctx)) == NULL) in ossl_ec_GFp_nist_field_mul()
144 if (!group->field_mod_func(r, r, group->field, ctx)) in ossl_ec_GFp_nist_field_mul()
153 int ossl_ec_GFp_nist_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, in ossl_ec_GFp_nist_field_sqr() argument
159 if (!group || !r || !a) { in ossl_ec_GFp_nist_field_sqr()
164 if ((ctx_new = ctx = BN_CTX_new_ex(group->libctx)) == NULL) in ossl_ec_GFp_nist_field_sqr()
169 if (!group->field_mod_func(r, r, group->field, ctx)) in ossl_ec_GFp_nist_field_sqr()