summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2014-05-17 12:12:06 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2014-05-17 12:12:06 +0000
commite61f1e8d84ff9cdee811091b452e3633a14f5df9 (patch)
treede937a4bfbd4399581d4001b8a49bb982e1bd117 /lib/libcrypto
parentcc63ae143c3a8dbe1a5d4939fe70a737e74dd66a (diff)
switch RSA key generation default to 2048 bits (matching ssh); ok miod@
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/rsa/rsa_pmeth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/rsa/rsa_pmeth.c b/lib/libcrypto/rsa/rsa_pmeth.c
index 09ef090172b..5580b7783ad 100644
--- a/lib/libcrypto/rsa/rsa_pmeth.c
+++ b/lib/libcrypto/rsa/rsa_pmeth.c
@@ -96,7 +96,7 @@ static int pkey_rsa_init(EVP_PKEY_CTX *ctx)
rctx = malloc(sizeof(RSA_PKEY_CTX));
if (!rctx)
return 0;
- rctx->nbits = 1024;
+ rctx->nbits = 2048;
rctx->pub_exp = NULL;
rctx->pad_mode = RSA_PKCS1_PADDING;
rctx->md = NULL;