changeset 1595:4fe7cc9e45eb

reduce number of dh parameters so fuzzer doesn't timeout
author Matt Johnston <matt@ucc.asn.au>
date Tue, 06 Mar 2018 21:00:09 +0800
parents c69df5d5db94
children 60fceff95858
files fuzzer-kexdh.c fuzzer-kexecdh.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/fuzzer-kexdh.c	Mon Mar 05 21:02:26 2018 +0800
+++ b/fuzzer-kexdh.c	Tue Mar 06 21:00:09 2018 +0800
@@ -10,7 +10,7 @@
 	static int once = 0;
 	static struct key_context* keep_newkeys = NULL;
 	/* number of generated parameters is limited by the timeout for the first run */
-	#define NUM_PARAMS 300
+	#define NUM_PARAMS 80
 	static struct kex_dh_param *dh_params[NUM_PARAMS];
 
 	if (!once) {
--- a/fuzzer-kexecdh.c	Mon Mar 05 21:02:26 2018 +0800
+++ b/fuzzer-kexecdh.c	Tue Mar 06 21:00:09 2018 +0800
@@ -11,7 +11,7 @@
 	static const struct dropbear_kex *ecdh[3]; /* 256, 384, 521 */
 	static struct key_context* keep_newkeys = NULL;
 	/* number of generated parameters is limited by the timeout for the first run */
-	#define NUM_PARAMS 300
+	#define NUM_PARAMS 80
 	static struct kex_ecdh_param *ecdh_params[NUM_PARAMS];
 
 	if (!once) {