openssl/providers/implementations/keymgmt
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 Add SM2 private key range validation 2021-01-08 23:59:02 +02:00
dh_kmgmt.c Fix DH gettable OSSL_PKEY_PARAM_DH_PRIV_LEN so that it has the correct 2021-03-30 09:45:07 +10:00
dsa_kmgmt.c Make EVP_PKEY_missing_parameters work properly on provided RSA keys 2021-03-17 14:57:47 +01:00
ec_kmgmt_imexport.inc [PROV][KMGMT][KEXCH][EC] Implement EC keymgtm and ECDH 2020-02-18 19:11:10 +02:00
ec_kmgmt.c Make the SM2 group the default group for the SM2 algorithm 2021-03-26 16:11:09 +01:00
ecx_kmgmt.c Add ossl_ ecx symbols 2021-03-18 17:52:37 +10:00
kdf_legacy_kmgmt.c Fix misc external ossl_ symbols. 2021-03-18 17:52:37 +10:00
mac_legacy_kmgmt.c provider: add params argument to key manager's gen_init call 2021-03-12 08:27:11 +10:00
rsa_kmgmt.c Fix change in behaviour of EVP_PKEY_CTRL_RSA_KEYGEN_BITS 2021-03-30 19:22:33 +02:00