openssl/crypto/rsa
Matt Caswell c6b09ea0fe Fix change in behaviour of EVP_PKEY_CTRL_RSA_KEYGEN_BITS
In 1.1.1 the ctrl EVP_PKEY_CTRL_RSA_KEYGEN_BITS would fail immediately
if the number of bits was too small. In 3.0 it always succeeds, and only
fails later during the key generation stage.

We fix that so that it fails early like it used to in 1.1.1.

Note that in 1.1.1 it fails with a -2 return code. That is not the case
in 3.0 and has not been addressed here (see #14442)

Fixes #14443

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14702)
2021-03-30 19:22:33 +02:00
..
build.info Remove RSA SSLv23 padding mode 2021-03-01 10:56:12 +01:00
rsa_acvp_test_params.c Add ossl_rsa symbols 2021-03-18 17:52:37 +10:00
rsa_ameth.c Implement EVP_PKEY_dup() function 2021-03-28 16:38:57 +10:00
rsa_asn1.c Implement EVP_PKEY_dup() function 2021-03-28 16:38:57 +10:00
rsa_backend.c PROV: Add type specific PKCS#8 decoding to the DER->key decoders 2021-03-19 16:46:39 +01:00
rsa_chk.c Add ossl_rsa symbols 2021-03-18 17:52:37 +10:00
rsa_crpt.c
rsa_depr.c
rsa_err.c
rsa_gen.c Add ossl_rsa symbols 2021-03-18 17:52:37 +10:00
rsa_lib.c Remove RSA bignum_data that is not used anywhere 2021-03-28 16:38:56 +10:00
rsa_local.h Fix change in behaviour of EVP_PKEY_CTRL_RSA_KEYGEN_BITS 2021-03-30 19:22:33 +02:00
rsa_meth.c
rsa_mp_names.c
rsa_mp.c Add ossl_rsa symbols 2021-03-18 17:52:37 +10:00
rsa_none.c
rsa_oaep.c
rsa_ossl.c Dual 1024-bit exponentiation optimization for Intel IceLake CPU 2021-03-22 09:48:00 +00:00
rsa_pk1.c
rsa_pmeth.c Add ossl_rsa symbols 2021-03-18 17:52:37 +10:00
rsa_prn.c
rsa_pss.c Update copyright year 2021-02-18 15:05:17 +00:00
rsa_saos.c
rsa_schemes.c
rsa_sign.c Add ossl_rsa symbols 2021-03-18 17:52:37 +10:00
rsa_sp800_56b_check.c Update copyright year 2021-03-11 13:27:36 +00:00
rsa_sp800_56b_gen.c Fix misc external ossl_ symbols. 2021-03-18 17:52:37 +10:00
rsa_x931.c
rsa_x931g.c