]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Update default key length in PuTTYgen to 2048.
authorSimon Tatham <anakin@pobox.com>
Sun, 19 Feb 2012 10:44:04 +0000 (10:44 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 19 Feb 2012 10:44:04 +0000 (10:44 +0000)
[originally from svn r9414]

cmdgen.c
windows/winpgen.c

index 3abc24527d3dbde49e99cd2843e0b41491800afb..6d8b39ac75d3b923a48c1a21cbeeb78e17098f0a 100644 (file)
--- a/cmdgen.c
+++ b/cmdgen.c
@@ -261,7 +261,7 @@ int main(int argc, char **argv)
     enum { NOKEYGEN, RSA1, RSA2, DSA } keytype = NOKEYGEN;    
     char *outfile = NULL, *outfiletmp = NULL;
     enum { PRIVATE, PUBLIC, PUBLICO, FP, OPENSSH, SSHCOM } outtype = PRIVATE;
-    int bits = 1024;
+    int bits = 2048;
     char *comment = NULL, *origcomment = NULL;
     int change_passphrase = FALSE;
     int errs = FALSE, nogo = FALSE;
index 48a02ec2e995484cedf9cf8c3497ab3851c0f36c..c83d0d20cd5ce04dd96fa6a15c1325999196d775 100644 (file)
@@ -20,7 +20,7 @@
 
 #define WM_DONEKEY (WM_APP + 1)
 
-#define DEFAULT_KEYSIZE 1024
+#define DEFAULT_KEYSIZE 2048
 
 static char *cmdline_keyfile = NULL;