Mercurial > dropbear
comparison fuzzer-kexecdh.c @ 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 | 46506b32650a |
children | 98d2b125eb89 |
comparison
equal
deleted
inserted
replaced
1594:c69df5d5db94 | 1595:4fe7cc9e45eb |
---|---|
9 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { | 9 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { |
10 static int once = 0; | 10 static int once = 0; |
11 static const struct dropbear_kex *ecdh[3]; /* 256, 384, 521 */ | 11 static const struct dropbear_kex *ecdh[3]; /* 256, 384, 521 */ |
12 static struct key_context* keep_newkeys = NULL; | 12 static struct key_context* keep_newkeys = NULL; |
13 /* number of generated parameters is limited by the timeout for the first run */ | 13 /* number of generated parameters is limited by the timeout for the first run */ |
14 #define NUM_PARAMS 300 | 14 #define NUM_PARAMS 80 |
15 static struct kex_ecdh_param *ecdh_params[NUM_PARAMS]; | 15 static struct kex_ecdh_param *ecdh_params[NUM_PARAMS]; |
16 | 16 |
17 if (!once) { | 17 if (!once) { |
18 fuzz_common_setup(); | 18 fuzz_common_setup(); |
19 fuzz_svr_setup(); | 19 fuzz_svr_setup(); |