diff options
| author | sthen <> | 2014-05-17 12:12:05 +0000 |
|---|---|---|
| committer | sthen <> | 2014-05-17 12:12:05 +0000 |
| commit | 03af8b66bc2785f9f64b1e1b21c45684be8e2d38 (patch) | |
| tree | 13b515836d113a15d199f1e3cbd371a37770415f /src/lib/libc | |
| parent | 68ab09742f5a4a19c2ac853bbe51fe67ae308eb5 (diff) | |
| download | openbsd-03af8b66bc2785f9f64b1e1b21c45684be8e2d38.tar.gz openbsd-03af8b66bc2785f9f64b1e1b21c45684be8e2d38.tar.bz2 openbsd-03af8b66bc2785f9f64b1e1b21c45684be8e2d38.zip | |
switch RSA key generation default to 2048 bits (matching ssh); ok miod@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_pmeth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_pmeth.c b/src/lib/libcrypto/rsa/rsa_pmeth.c index 09ef090172..5580b7783a 100644 --- a/src/lib/libcrypto/rsa/rsa_pmeth.c +++ b/src/lib/libcrypto/rsa/rsa_pmeth.c | |||
| @@ -96,7 +96,7 @@ static int pkey_rsa_init(EVP_PKEY_CTX *ctx) | |||
| 96 | rctx = malloc(sizeof(RSA_PKEY_CTX)); | 96 | rctx = malloc(sizeof(RSA_PKEY_CTX)); |
| 97 | if (!rctx) | 97 | if (!rctx) |
| 98 | return 0; | 98 | return 0; |
| 99 | rctx->nbits = 1024; | 99 | rctx->nbits = 2048; |
| 100 | rctx->pub_exp = NULL; | 100 | rctx->pub_exp = NULL; |
| 101 | rctx->pad_mode = RSA_PKCS1_PADDING; | 101 | rctx->pad_mode = RSA_PKCS1_PADDING; |
| 102 | rctx->md = NULL; | 102 | rctx->md = NULL; |
