Allow RSA-PSS also in EVP_PKEY_assign() and EVP_PKEY_can_sign()
authorIngo Franzki <ifranzki@linux.ibm.com>
Wed, 23 Aug 2023 13:08:51 +0000 (15:08 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 24 Aug 2023 16:07:08 +0000 (18:07 +0200)
commite2972982c64f3f1ac10b3ebe1086d99ec67631bd
tree9d574eedead6718f508b9995d89ebf20b1be3d5d
parentcf712830b7b5a20a768a1fc5f78dc48841b7617f
Allow RSA-PSS also in EVP_PKEY_assign() and EVP_PKEY_can_sign()

Treat keys with EVP_PKEY_RSA_PSS the same as EVP_PKEY_RSA in EVP_PKEY_can_sign()
and detect_foreign_key() which is called by EVP_PKEY_assign().

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21819)
crypto/evp/p_lib.c