diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-06-09 10:21:58 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-05-25 15:16:54 +0200 |
commit | a7e4ca5b4e1932cb91ea21047403c87a033e524a (patch) | |
tree | 1ad41d1f12e8ed09486ca48cf570cff42962ec73 /apps/genrsa.c | |
parent | 8d67621de16990132c13f6a11bcc18ce8e9cdd47 (diff) |
Add warning to key/param generating apps on potential delay due to missing entropy
This also introduces app_keygen() and app_paramgen() and cleans up err reporting.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12095)
Diffstat (limited to 'apps/genrsa.c')
-rw-r--r-- | apps/genrsa.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/genrsa.c b/apps/genrsa.c index 0e84687b32..e709ea38ce 100644 --- a/apps/genrsa.c +++ b/apps/genrsa.c @@ -201,13 +201,7 @@ opthelp: BIO_printf(bio_err, "Error setting number of primes\n"); goto end; } - if (verbose) - BIO_printf(bio_err, "Generating RSA private key, %d bit long modulus (%d primes)\n", - num, primes); - if (!EVP_PKEY_keygen(ctx, &pkey)) { - BIO_printf(bio_err, "Error generating RSA key\n"); - goto end; - } + pkey = app_keygen(ctx, "RSA", num, verbose); if (verbose) { BIGNUM *e = NULL; |