Blame SOURCES/gnupg-2.1.21-large-rsa.patch

e4fdbb
diff -up gnupg-2.1.21/g10/keygen.c.large-rsa gnupg-2.1.21/g10/keygen.c
e4fdbb
--- gnupg-2.1.21/g10/keygen.c.large-rsa	2017-05-15 14:13:22.000000000 +0200
e4fdbb
+++ gnupg-2.1.21/g10/keygen.c	2017-07-18 16:12:37.738895016 +0200
e4fdbb
@@ -2091,7 +2091,7 @@ get_keysize_range (int algo, unsigned in
e4fdbb
 
e4fdbb
     default:
e4fdbb
       *min = opt.compliance == CO_DE_VS ? 2048: 1024;
e4fdbb
-      *max = 4096;
e4fdbb
+      *max = opt.flags.large_rsa == 1 ? 8192 : 4096;
e4fdbb
       def = 2048;
e4fdbb
       break;
e4fdbb
     }