]> git.ipfire.org Git - thirdparty/openssl.git/commit
rsa/rsa_ameth.c: Add the check for the EVP_MD_get_size()
authorJiasheng Jiang <jiasheng@purdue.edu>
Mon, 25 Mar 2024 21:07:46 +0000 (21:07 +0000)
committerNeil Horman <nhorman@openssl.org>
Fri, 29 Mar 2024 19:34:32 +0000 (15:34 -0400)
commite582b2b22bcfbf5ed2b38de5fd1417013028614f
treebeb8ae1c9b5bd39df3ae0a42225d0af19581fdec
parent1967539e212c17139dc810096da987c8100b1ba2
rsa/rsa_ameth.c: Add the check for the EVP_MD_get_size()

Add the check for the EVP_MD_get_size() to avoid invalid negative numbers.

Fixes: 17c63d1cca ("RSA PSS ASN1 signing method")
Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23973)
crypto/rsa/rsa_ameth.c