diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2019-04-13 12:32:48 +0200 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2019-05-21 16:54:19 +0200 |
commit | ccbf148e30c5cb5f595c5d9e713c68768fe84248 (patch) | |
tree | b6ce68adc6495b8ec7446a634c3ba6e40df789e7 /crypto/rsa/rsa_pmeth.c | |
parent | 3b5a079d6b454d6d46279e2d56d625495c597633 (diff) |
Change default RSA, DSA and DH size to 2048 bit
Fixes: #8737
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Richard Levitte <levitte@openssl.org>
GH: #8741
(cherry picked from commit 70b0b977f73cd70e17538af3095d18e0cf59132e)
Diffstat (limited to 'crypto/rsa/rsa_pmeth.c')
-rw-r--r-- | crypto/rsa/rsa_pmeth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_pmeth.c b/crypto/rsa/rsa_pmeth.c index 2d1dffbbb5..0037b914dd 100644 --- a/crypto/rsa/rsa_pmeth.c +++ b/crypto/rsa/rsa_pmeth.c @@ -48,7 +48,7 @@ static int pkey_rsa_init(EVP_PKEY_CTX *ctx) rctx = OPENSSL_zalloc(sizeof(*rctx)); if (rctx == NULL) return 0; - rctx->nbits = 1024; + rctx->nbits = 2048; rctx->pad_mode = RSA_PKCS1_PADDING; rctx->saltlen = -2; ctx->data = rctx; |