View | Details | Raw Unified | Return to bug 230610 | Differences between
and this patch

Collapse All | Expand All

(-)security/gnupg/files/patch-g10_keygen.c (+14 lines)
Line 0 Link Here
1
Allow 8192 bit RSA keys to be selected when generating keys interactively
2
with --full-generate-key and --enable-large-rsa
3
Based on https://lists.gnupg.org/pipermail/gnupg-devel/2015-February/029466.html
4
--- g10/keygen.c.orig	2018-08-14 13:22:40 UTC
5
+++ g10/keygen.c
6
@@ -2116,7 +2116,7 @@ get_keysize_range (int algo, unsigned in
7
 
8
     default:
9
       *min = opt.compliance == CO_DE_VS ? 2048: 1024;
10
-      *max = 4096;
11
+      *max = (opt.flags.large_rsa ? 8192 : 4096);
12
       def = 2048;
13
       break;
14
     }

Return to bug 230610