comparison common-kex.c @ 1456:a90fdd2d2ed8 fuzz

add fuzzer-preauth_nomaths
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Jan 2018 23:05:47 +0800
parents 798854f62430
children 5916af64acd4
comparison
equal deleted inserted replaced
1455:4afde04f0607 1456:a90fdd2d2ed8
46 #endif 46 #endif
47 static void read_kex_algos(void); 47 static void read_kex_algos(void);
48 /* helper function for gen_new_keys */ 48 /* helper function for gen_new_keys */
49 static void hashkeys(unsigned char *out, unsigned int outlen, 49 static void hashkeys(unsigned char *out, unsigned int outlen,
50 const hash_state * hs, const unsigned char X); 50 const hash_state * hs, const unsigned char X);
51 static void finish_kexhashbuf(void);
52 51
53 52
54 /* Send our list of algorithms we can use */ 53 /* Send our list of algorithms we can use */
55 void send_msg_kexinit() { 54 void send_msg_kexinit() {
56 55
767 finish_kexhashbuf(); 766 finish_kexhashbuf();
768 } 767 }
769 #endif /* DROPBEAR_CURVE25519 */ 768 #endif /* DROPBEAR_CURVE25519 */
770 769
771 770
772 771 void finish_kexhashbuf(void) {
773 static void finish_kexhashbuf(void) {
774 hash_state hs; 772 hash_state hs;
775 const struct ltc_hash_descriptor *hash_desc = ses.newkeys->algo_kex->hash_desc; 773 const struct ltc_hash_descriptor *hash_desc = ses.newkeys->algo_kex->hash_desc;
776 774
777 hash_desc->init(&hs); 775 hash_desc->init(&hs);
778 buf_setpos(ses.kexhashbuf, 0); 776 buf_setpos(ses.kexhashbuf, 0);