Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.security.pgp.tech > #61

Re: gnupg2 modified to generate 16384 bits RSA key

Newsgroups comp.security.pgp.tech
Date 2014-11-01 08:38 -0700
References <14e417f17b3cb247f87eb7c943e9800c@rip.ax.lt>
Message-ID <85c3d1de-01b7-404b-8019-32fd99a7b6ce@googlegroups.com> (permalink)
Subject Re: gnupg2 modified to generate 16384 bits RSA key
From wzab01@gmail.com

Show all headers | View raw


To modify the newest version of gnupg2 it is necessary to change sources in three places:

--- gnupg2-2.0.26.orig/g10/gpg.c
+++ gnupg2-2.0.26/g10/gpg.c
@@ -2068,7 +2068,7 @@ main (int argc, char **argv)
 #endif

     /* Initialize the secure memory. */
-    if (!gcry_control (GCRYCTL_INIT_SECMEM, 32768, 0))
+    if (!gcry_control (GCRYCTL_INIT_SECMEM, 131072, 0))
       got_secmem = 1;
 #if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
     /* There should be no way to get to this spot while still carrying
--- gnupg2-2.0.26.orig/g10/keygen.c
+++ gnupg2-2.0.26/g10/keygen.c
@@ -1442,9 +1442,9 @@ gen_rsa (int algo, unsigned nbits, KBNOD
       nbits = 2048;
       log_info (_("keysize invalid; using %u bits\n"), nbits );
     }
-  else if (nbits > 4096)
+  else if (nbits > 16384)
     {
-      nbits = 4096;
+      nbits = 16384;
       log_info (_("keysize invalid; using %u bits\n"), nbits );
     }

@@ -1781,7 +1781,7 @@ ask_algo (int addmode, int *r_subkey_alg
 static unsigned
 ask_keysize (int algo, unsigned int primary_keysize)
 {
-  unsigned int nbits, min, def = DEFAULT_STD_KEYSIZE, max=4096;
+  unsigned int nbits, min, def = DEFAULT_STD_KEYSIZE, max=16384;
   int for_subkey = !!primary_keysize;
   int autocomp = 0;

Back to comp.security.pgp.tech | Previous | NextPrevious in thread | Find similar


Thread

gnupg2 modified to generate 16384 bits RSA key Anne Onime <anonymous@rip.ax.lt> - 2011-05-19 00:29 +0200
  Re: gnupg2 modified to generate 16384 bits RSA key 1PW <1PW@INVALID.net> - 2011-05-19 12:31 -0700
    Re: gnupg2 modified to generate 16384 bits RSA key Lucian Solaris <luciansolaris@gmail.com> - 2011-05-20 08:27 -0700
  Re: gnupg2 modified to generate 16384 bits RSA key wzab01@gmail.com - 2014-11-01 08:38 -0700

csiph-web