Mercurial > dropbear
comparison fuzz-common.c @ 1692:1051e4eea25a
Update LibTomMath to 1.2.0 (#84)
* update C files
* update other files
* update headers
* update makefiles
* remove mp_set/get_double()
* use ltm 1.2.0 API
* update ltm_desc
* use bundled tommath if system-tommath is too old
* XMALLOC etc. were changed to MP_MALLOC etc.
author | Steffen Jaeckel <s@jaeckel.eu> |
---|---|
date | Tue, 26 May 2020 17:36:47 +0200 |
parents | d32bcb5c557d |
children | dfbe947bdf0d |
comparison
equal
deleted
inserted
replaced
1691:2d3745d58843 | 1692:1051e4eea25a |
---|---|
145 | 145 |
146 /* cut down version of svr_send_msg_kexdh_reply() that skips slow maths. Still populates structures */ | 146 /* cut down version of svr_send_msg_kexdh_reply() that skips slow maths. Still populates structures */ |
147 void fuzz_fake_send_kexdh_reply(void) { | 147 void fuzz_fake_send_kexdh_reply(void) { |
148 assert(!ses.dh_K); | 148 assert(!ses.dh_K); |
149 m_mp_alloc_init_multi(&ses.dh_K, NULL); | 149 m_mp_alloc_init_multi(&ses.dh_K, NULL); |
150 mp_set_int(ses.dh_K, 12345678); | 150 mp_set_ul(ses.dh_K, 12345678uL); |
151 finish_kexhashbuf(); | 151 finish_kexhashbuf(); |
152 } | 152 } |
153 | 153 |
154 int fuzz_run_preauth(const uint8_t *Data, size_t Size, int skip_kexmaths) { | 154 int fuzz_run_preauth(const uint8_t *Data, size_t Size, int skip_kexmaths) { |
155 static int once = 0; | 155 static int once = 0; |