blob: 544d5703e0dad9a98c875e8cafb1d9ae386426be (
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
26
27
28
29
30
31
32
33
34
35
|
diff --git a/configure.ac b/configure.ac
index 215a6535f..eeba4e584 100644
--- a/configure.ac
+++ b/configure.ac
@@ -260,7 +260,7 @@ AC_ARG_ENABLE(large-secmem,
large_secmem=$enableval, large_secmem=no)
AC_MSG_RESULT($large_secmem)
if test "$large_secmem" = yes ; then
- SECMEM_BUFFER_SIZE=65536
+ SECMEM_BUFFER_SIZE=1048576
else
SECMEM_BUFFER_SIZE=32768
fi
diff --git a/g10/keygen.c b/g10/keygen.c
index a4117cdd0..638a19cb2 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -1819,7 +1819,7 @@ gen_rsa (int algo, unsigned int nbits, KBNODE pub_root,
int err;
char *keyparms;
char nbitsstr[35];
- const unsigned maxsize = (opt.flags.large_rsa ? 8192 : 4096);
+ const unsigned maxsize = (opt.flags.large_rsa ? 65536 : 4096);
log_assert (is_RSA(algo));
@@ -2473,7 +2473,7 @@ get_keysize_range (int algo, unsigned int *min, unsigned int *max)
default:
*min = opt.compliance == CO_DE_VS ? 2048: 1024;
- *max = 4096;
+ *max = 65536;
def = 3072;
break;
}
|