comparison fuzz.h @ 1589:35af85194268

Add kexdh and kexecdh fuzzers
author Matt Johnston <matt@ucc.asn.au>
date Mon, 05 Mar 2018 11:50:31 +0800
parents 02b226c2675e
children dfbe947bdf0d
comparison
equal deleted inserted replaced
1588:149a5329d83a 1589:35af85194268
17 // must be called once per fuzz iteration. 17 // must be called once per fuzz iteration.
18 // returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE 18 // returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE
19 int fuzz_set_input(const uint8_t *Data, size_t Size); 19 int fuzz_set_input(const uint8_t *Data, size_t Size);
20 20
21 int fuzz_run_preauth(const uint8_t *Data, size_t Size, int skip_kexmaths); 21 int fuzz_run_preauth(const uint8_t *Data, size_t Size, int skip_kexmaths);
22 const void* fuzz_get_algo(const algo_type *algos, const char* name);
22 23
23 // fuzzer functions that intrude into general code 24 // fuzzer functions that intrude into general code
24 void fuzz_kex_fakealgos(void); 25 void fuzz_kex_fakealgos(void);
25 int fuzz_checkpubkey_line(buffer* line, int line_num, char* filename, 26 int fuzz_checkpubkey_line(buffer* line, int line_num, char* filename,
26 const char* algo, unsigned int algolen, 27 const char* algo, unsigned int algolen,