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

b5a5d8
diff -up gnupg-2.2.23/g10/keygen.c.large-rsa gnupg-2.2.23/g10/keygen.c
b5a5d8
--- gnupg-2.2.23/g10/keygen.c.large-rsa	2020-09-04 13:53:42.030486671 +0200
b5a5d8
+++ gnupg-2.2.23/g10/keygen.c	2020-09-04 13:55:52.896669542 +0200
b5a5d8
@@ -2262,7 +2262,7 @@ get_keysize_range (int algo, unsigned in
b5a5d8
 
b5a5d8
     default:
b5a5d8
       *min = opt.compliance == CO_DE_VS ? 2048: 1024;
b5a5d8
-      *max = 4096;
b5a5d8
+      *max = opt.flags.large_rsa == 1 ? 8192 : 4096;
b5a5d8
       def = 3072;
b5a5d8
       break;
b5a5d8
     }