Daniel Bevenius e947a0642d 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)
2021-01-28 16:25:16 +01:00
..
2021-01-28 13:54:57 +01:00
2021-01-28 13:54:57 +01:00
2019-04-19 09:31:54 +01:00
2018-07-11 14:49:02 +02:00
2020-11-18 11:40:52 +01:00
2021-01-28 13:54:57 +01:00
2020-04-23 13:55:52 +01:00
2021-01-08 17:04:46 +00:00
2019-09-19 09:27:38 -04:00
2020-10-15 14:10:06 +01:00