summarylogtreecommitdiffstats
path: root/gnupg-large-rsa.patch
blob: d164921e0f2e46f0b3c7c45af4fe822c4d354ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -aur old/g10/keygen.c new/g10/keygen.c
--- old/g10/keygen.c	2019-02-27 14:33:09.533386670 +0100
+++ new/g10/keygen.c	2019-02-27 14:38:40.627816221 +0100
@@ -1639,7 +1639,7 @@
   int err;
   char *keyparms;
   char nbitsstr[35];
-  const unsigned maxsize = (opt.flags.large_rsa ? 8192 : 4096);
+  const unsigned maxsize = (opt.flags.large_rsa ? 16384 : 4096);
 
   log_assert (is_RSA(algo));
 
@@ -2114,6 +2114,12 @@
       def=255;
       break;
 
+    case PUBKEY_ALGO_RSA:
+      *min = opt.compliance == CO_DE_VS ? 2048 : 1024;
+      *max = (opt.flags.large_rsa ? 16384 : 4096);
+      def = 2048;
+      break;
+
     default:
       *min = opt.compliance == CO_DE_VS ? 2048: 1024;
       *max = 4096;