diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2020-10-09 06:07:43 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-01-28 16:25:16 +0100 |
commit | e947a0642db111bb34547b5f7d48e13163492ca5 (patch) | |
tree | a5e71dbadff8d328df119f0c2f12fc8dcbcfa61f /util | |
parent | d744934b756bc71344818a2cb60b13dd89954afb (diff) |
EVP: fix keygen for EVP_PKEY_RSA_PSS
This commit attempts to fix the an issue when generating a key of type
EVP_PKEY_RSA_PSS. Currently, EVP_PKEY_CTX_set_rsa_keygen_bits will
return -1 if the key id is not of type EVP_PKEY_RSA. This commit adds
EVP_PKEY_RSA_PSS to also be accepted.
The macro EVP_PKEY_CTX_set_rsa_pss_keygen_md si converted into a
function and it is now called in legacy_ctrl_to_param.
Fixes #12384
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13099)
Diffstat (limited to 'util')
-rw-r--r-- | util/libcrypto.num | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/libcrypto.num b/util/libcrypto.num index 509c694d69..f519518395 100644 --- a/util/libcrypto.num +++ b/util/libcrypto.num @@ -5287,6 +5287,8 @@ PEM_write_bio_PUBKEY_ex ? 3_0_0 EXIST::FUNCTION: EVP_PKEY_get_group_name ? 3_0_0 EXIST::FUNCTION: CRYPTO_atomic_or ? 3_0_0 EXIST::FUNCTION: CRYPTO_atomic_load ? 3_0_0 EXIST::FUNCTION: +EVP_PKEY_CTX_set_rsa_pss_keygen_md ? 3_0_0 EXIST::FUNCTION: +EVP_PKEY_CTX_set_rsa_pss_keygen_md_name ? 3_0_0 EXIST::FUNCTION: EVP_PKEY_settable_params ? 3_0_0 EXIST::FUNCTION: EVP_PKEY_set_params ? 3_0_0 EXIST::FUNCTION: EVP_PKEY_set_int_param ? 3_0_0 EXIST::FUNCTION: |