Lines Matching refs:group
42 if (eckey->group->meth->ecdsa_sign_setup == NULL) { in ossl_ecdsa_sign_setup()
47 return eckey->group->meth->ecdsa_sign_setup(eckey, ctx_in, kinvp, rp); in ossl_ecdsa_sign_setup()
54 if (eckey->group->meth->ecdsa_sign_sig == NULL) { in ossl_ecdsa_sign_sig()
59 return eckey->group->meth->ecdsa_sign_sig(dgst, dgst_len, in ossl_ecdsa_sign_sig()
66 if (eckey->group->meth->ecdsa_verify_sig == NULL) { in ossl_ecdsa_verify_sig()
71 return eckey->group->meth->ecdsa_verify_sig(dgst, dgst_len, sig, eckey); in ossl_ecdsa_verify_sig()
142 const EC_GROUP *group; in ecdsa_sign_setup() local
147 if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL) { in ecdsa_sign_setup()
175 if ((tmp_point = EC_POINT_new(group)) == NULL) { in ecdsa_sign_setup()
180 if ((order = EC_GROUP_get0_order(group)) == NULL) { in ecdsa_sign_setup()
222 if (!EC_POINT_mul(group, tmp_point, k, NULL, NULL, ctx)) { in ecdsa_sign_setup()
227 if (!EC_POINT_get_affine_coordinates(group, tmp_point, X, NULL, ctx)) { in ecdsa_sign_setup()
239 if (!ossl_ec_group_do_inverse_ord(group, k, k, ctx)) { in ecdsa_sign_setup()
279 const EC_GROUP *group; in ossl_ecdsa_simple_sign_sig() local
283 group = EC_KEY_get0_group(eckey); in ossl_ecdsa_simple_sign_sig()
286 if (group == NULL) { in ossl_ecdsa_simple_sign_sig()
319 if ((order = EC_GROUP_get0_order(group)) == NULL) { in ossl_ecdsa_simple_sign_sig()
362 if (!bn_to_mont_fixed_top(s, ret->r, group->mont_data, ctx) in ossl_ecdsa_simple_sign_sig()
363 || !bn_mul_mont_fixed_top(s, s, priv_key, group->mont_data, ctx)) { in ossl_ecdsa_simple_sign_sig()
375 if (!bn_to_mont_fixed_top(s, s, group->mont_data, ctx) in ossl_ecdsa_simple_sign_sig()
376 || !BN_mod_mul_montgomery(s, s, ckinv, group->mont_data, ctx)) { in ossl_ecdsa_simple_sign_sig()
452 const EC_GROUP *group; in ossl_ecdsa_simple_verify_sig() local
456 if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL || in ossl_ecdsa_simple_verify_sig()
482 order = EC_GROUP_get0_order(group); in ossl_ecdsa_simple_verify_sig()
496 if (!ossl_ec_group_do_inverse_ord(group, u2, sig->s, ctx)) { in ossl_ecdsa_simple_verify_sig()
527 if ((point = EC_POINT_new(group)) == NULL) { in ossl_ecdsa_simple_verify_sig()
531 if (!EC_POINT_mul(group, point, u1, pub_key, u2, ctx)) { in ossl_ecdsa_simple_verify_sig()
536 if (!EC_POINT_get_affine_coordinates(group, point, X, NULL, ctx)) { in ossl_ecdsa_simple_verify_sig()