Lines Matching refs:eckey
19 const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) in ossl_ecdsa_sign() argument
23 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ossl_ecdsa_sign()
33 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, in ecdsa_sign_setup() argument
46 if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL) { in ecdsa_sign_setup()
50 if ((priv_key = EC_KEY_get0_private_key(eckey)) == NULL) { in ecdsa_sign_setup()
55 if (!EC_KEY_can_sign(eckey)) { in ecdsa_sign_setup()
148 int ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, in ossl_ecdsa_sign_setup() argument
151 return ecdsa_sign_setup(eckey, ctx_in, kinvp, rp, NULL, 0); in ossl_ecdsa_sign_setup()
156 EC_KEY *eckey) in ossl_ecdsa_sign_sig() argument
166 group = EC_KEY_get0_group(eckey); in ossl_ecdsa_sign_sig()
167 priv_key = EC_KEY_get0_private_key(eckey); in ossl_ecdsa_sign_sig()
178 if (!EC_KEY_can_sign(eckey)) { in ossl_ecdsa_sign_sig()
220 if (!ecdsa_sign_setup(eckey, ctx, &kinv, &ret->r, dgst, dgst_len)) { in ossl_ecdsa_sign_sig()
293 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey) in ossl_ecdsa_verify() argument
310 ret = ECDSA_do_verify(dgst, dgst_len, s, eckey); in ossl_ecdsa_verify()
318 const ECDSA_SIG *sig, EC_KEY *eckey) in ossl_ecdsa_verify_sig() argument
329 if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL || in ossl_ecdsa_verify_sig()
330 (pub_key = EC_KEY_get0_public_key(eckey)) == NULL || sig == NULL) { in ossl_ecdsa_verify_sig()
335 if (!EC_KEY_can_sign(eckey)) { in ossl_ecdsa_verify_sig()