summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-12-25 13:38:23 +0100
committerDr. David von Oheimb <dev@ddvo.net>2023-05-30 22:02:10 +0200
commit36b91a198ae027c054ef128a35a268bc3c307f00 (patch)
treea47bf3a4c012fb34c51c8c34f973e15dc912f9b4 /include
parentfdef95716dbcc6127d05f8cfc90f389a84acaf9b (diff)
CMS, PKCS7, and CRMF: simplify use of EVP_PKEY_decrypt() by helper function
Also remove needless constant_time_* and ERR_clear_error() calls from OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert(). Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/17354)
Diffstat (limited to 'include')
-rw-r--r--include/crypto/evp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/crypto/evp.h b/include/crypto/evp.h
index 4f7f0c6eea..4e9cf7bb6d 100644
--- a/include/crypto/evp.h
+++ b/include/crypto/evp.h
@@ -952,4 +952,8 @@ int evp_md_get_number(const EVP_MD *md);
int evp_rand_get_number(const EVP_RAND *rand);
int evp_signature_get_number(const EVP_SIGNATURE *signature);
+int evp_pkey_decrypt_alloc(EVP_PKEY_CTX *ctx, unsigned char **outp,
+ size_t *outlenp, size_t expected_outlen,
+ const unsigned char *in, size_t inlen);
+
#endif /* OSSL_CRYPTO_EVP_H */