aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <[email protected]>2017-09-07 22:41:10 +0000
committerDaniel Kahn Gillmor <[email protected]>2017-09-08 15:37:42 +0000
commit909fbca19678e6e36968607e8a2348381da39d8c (patch)
treea16bfd0bc1fd2ec01a1e8fd082a79b3d2b51b9bd /agent/command.c
parentgpgsm: default to 3072-bit keys. (diff)
downloadgnupg-909fbca19678e6e36968607e8a2348381da39d8c.tar.gz
gnupg-909fbca19678e6e36968607e8a2348381da39d8c.zip
gpg: default to 3072-bit RSA keys.
* agent/command.c (hlp_genkey): update help text to suggest the use of 3072 bits. * doc/wks.texi: Make example match default generation. * g10/keygen.c (DEFAULT_STD_KEY_PARAM): update to rsa3072/cert,sign+rsa3072/encr, and fix neighboring comment, (gen_rsa, get_keysize_range): update default from 2048 to 3072). * g10/keyid.c (pubkey_string): update comment so that first example is the default 3072-bit RSA. -- 3072-bit RSA is widely considered to be 128-bit-equivalent security. This is a sensible default in 2017. Signed-off-by: Daniel Kahn Gillmor <[email protected]> Gbp-Pq: Topic update-defaults Gbp-Pq: Name 0015-gpg-default-to-3072-bit-RSA-keys.patch
Diffstat (limited to 'agent/command.c')
-rw-r--r--agent/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/command.c b/agent/command.c
index f2a668306..fd39c680f 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -874,7 +874,7 @@ static const char hlp_genkey[] =
"\n"
" C: GENKEY\n"
" S: INQUIRE KEYPARAM\n"
- " C: D (genkey (rsa (nbits 2048)))\n"
+ " C: D (genkey (rsa (nbits 3072)))\n"
" C: END\n"
" S: D (public-key\n"
" S: D (rsa (n 326487324683264) (e 10001)))\n"