openssl/crypto/rsa
slontis 4514e02cdf Check range of RSA plaintext and ciphertext when using no padding.
Fixes #24051

RSA with 'no padding' corresponds to RSAEP/RSADP.
The code was not checking the lower bounds.
The bounds are specified in SP800-56Br2, section 7.1.1.1 and 7.1.2.1
Note that RFC8017 expresses the range in a sentence using the word
between, and there is some ambiguity in this.
The upper bounds have change to match the definition in SP800.

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24061)
2024-04-09 14:30:43 +02:00
..
build.info
rsa_acvp_test_params.c
rsa_ameth.c rsa/rsa_ameth.c: Add the check for the EVP_MD_get_size() 2024-03-29 15:34:32 -04:00
rsa_asn1.c
rsa_backend.c Copyright year updates 2024-04-09 13:43:26 +02:00
rsa_chk.c Copyright year updates 2023-09-07 09:59:15 +01:00
rsa_crpt.c
rsa_depr.c
rsa_err.c
rsa_gen.c Copyright year updates 2024-04-09 13:43:26 +02:00
rsa_lib.c Copyright year updates 2024-04-09 13:43:26 +02:00
rsa_local.h Copyright year updates 2024-04-09 13:43:26 +02:00
rsa_meth.c
rsa_mp_names.c
rsa_mp.c
rsa_none.c
rsa_oaep.c
rsa_ossl.c Check range of RSA plaintext and ciphertext when using no padding. 2024-04-09 14:30:43 +02:00
rsa_pk1.c Copyright year updates 2023-09-07 09:59:15 +01:00
rsa_pmeth.c rsa/rsa_pmeth.c: Add the checks for the EVP_MD_CTX_get_size() 2024-04-03 11:21:29 +02:00
rsa_prn.c
rsa_pss.c Copyright year updates 2023-09-07 09:59:15 +01:00
rsa_saos.c
rsa_schemes.c
rsa_sign.c
rsa_sp800_56b_check.c Copyright year updates 2024-04-09 13:43:26 +02:00
rsa_sp800_56b_gen.c Copyright year updates 2024-04-09 13:43:26 +02:00
rsa_x931.c
rsa_x931g.c Copyright year updates 2023-09-07 09:59:15 +01:00