]> git.ipfire.org Git - thirdparty/openssl.git/commit
Remove check for RSA encryption allowing X9.31 padding.
authorslontis <shane.lontis@oracle.com>
Fri, 19 Jul 2024 02:11:05 +0000 (12:11 +1000)
committerTodd Short <todd.short@me.com>
Sun, 21 Jul 2024 15:54:58 +0000 (11:54 -0400)
commit53b0527dd7f15350ed80fdcffa15e34e1ef0b9eb
tree7fa8d60da79dbd1390af2c5121bb67a0b9d825ee
parent98afa01f3e02fba18f9203b2451113df8f247f7c
Remove check for RSA encryption allowing X9.31 padding.

X9.31 is a Signature Standard, and should not apply to encryption.

rsa_ossl_public_encrypt() does not allow this padding mode.
The openssl rsautil command line tool already failed if the
-x931 option was used with -encrypt

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/24938)
providers/implementations/asymciphers/rsa_enc.c