Do not allow creating empty RSA keys by duplication
authorTomas Mraz <tomas@openssl.org>
Thu, 8 Apr 2021 17:27:06 +0000 (19:27 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 15 Apr 2021 07:23:18 +0000 (09:23 +0200)
commit7e43baed2a4cc050b301650c4a45ebdd54a30b5f
treeba88ce8f2a22394ee7329de560f4011730abcb2a
parent85fcc3fb777c527a614e58c23609210a9edf893b
Do not allow creating empty RSA keys by duplication

Also avoid crashing in rsa_get_params on empty keys.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14793)
crypto/dh/dh_lib.c
crypto/dsa/dsa_lib.c
crypto/ec/ecx_key.c
providers/implementations/keymgmt/rsa_kmgmt.c