Lines Matching defs:pkey

57 bool ApplyRSAOptions(const ManagedEVPPKey& pkey,
61 if (EVP_PKEY_id(pkey.get()) == EVP_PKEY_RSA ||
62 EVP_PKEY_id(pkey.get()) == EVP_PKEY_RSA2 ||
63 EVP_PKEY_id(pkey.get()) == EVP_PKEY_RSA_PSS) {
77 const ManagedEVPPKey& pkey,
86 int signed_sig_len = EVP_PKEY_size(pkey.get());
94 EVPKeyCtxPointer pkctx(EVP_PKEY_CTX_new(pkey.get(), nullptr));
97 ApplyRSAOptions(pkey, pkctx.get(), padding, pss_salt_len) &&
117 unsigned int GetBytesOfRS(const ManagedEVPPKey& pkey) {
118 int bits, base_id = EVP_PKEY_base_id(pkey.get());
121 const DSA* dsa_key = EVP_PKEY_get0_DSA(pkey.get());
125 const EC_KEY* ec_key = EVP_PKEY_get0_EC_KEY(pkey.get());
152 const ManagedEVPPKey& pkey, std::unique_ptr<BackingStore>&& signature) {
153 unsigned int n = GetBytesOfRS(pkey);
173 const ManagedEVPPKey& pkey,
175 unsigned int n = GetBytesOfRS(pkey);
191 const ManagedEVPPKey& pkey,
193 unsigned int n = GetBytesOfRS(pkey);
389 const ManagedEVPPKey& pkey,
398 if (!ValidateDSAParameters(pkey.get()))
402 Node_SignFinal(env(), std::move(mdctx), pkey, padding, salt_len);
405 buffer = ConvertSignatureToP1363(env(), pkey, std::move(buffer));
507 SignBase::Error Verify::VerifyFinal(const ManagedEVPPKey& pkey,
523 EVPKeyCtxPointer pkctx(EVP_PKEY_CTX_new(pkey.get(), nullptr));
526 ApplyRSAOptions(pkey, pkctx.get(), padding, saltlen) &&
545 ManagedEVPPKey pkey =
547 if (!pkey)
554 int padding = GetDefaultSignPadding(pkey);
572 signature = ConvertSignatureToDER(pkey, hbuf.ToByteSource());
578 Error err = verify->VerifyFinal(pkey, signature, padding,