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:08:06 +0000 (18:08 +0200)
commitec51c8050a6fd6b4073131da457e59c59dcc5d2a
tree07b47dd3472c6bf4af7052d3fcc43706e60ab869
parentbf7021dc5b79e961ee6ca4048f25faceb4aacd59
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)

(cherry picked from commit e2972982c64f3f1ac10b3ebe1086d99ec67631bd)
crypto/evp/p_lib.c