comparison kex.h @ 26:0969767bca0d

snapshot of stuff
author Matt Johnston <matt@ucc.asn.au>
date Mon, 26 Jul 2004 02:44:20 +0000
parents fe6bca95afa7
children f789045062e6
comparison
equal deleted inserted replaced
25:e4b6e2d569b2 26:0969767bca0d
24 24
25 #ifndef _KEX_H_ 25 #ifndef _KEX_H_
26 #define _KEX_H_ 26 #define _KEX_H_
27 27
28 #include "includes.h" 28 #include "includes.h"
29 #include "algo.h"
29 30
30 void send_msg_kexinit(); 31 void send_msg_kexinit();
31 void recv_msg_kexinit(); 32 void recv_msg_kexinit();
32 void send_dh_kex();
33 void recv_msg_kexdh_init();
34 void send_msg_newkeys(); 33 void send_msg_newkeys();
35 void recv_msg_newkeys(); 34 void recv_msg_newkeys();
36 void kexinitialise(); 35 void kexinitialise();
36 void gen_kexdh_vals(mp_int *dh_pub, mp_int *dh_priv);
37 void kexdh_comb_key(mp_int *dh_pub_us, mp_int *dh_priv, mp_int *dh_pub_them,
38 sign_key *hostkey);
37 39
38 void svr_read_kex(); 40 void read_kex_algos(
39 void cli_read_kex(); 41 algo_type*(buf_match_algo)(buffer*buf, algo_type localalgos[],
42 int *goodguess));
43
44 void recv_msg_kexdh_init(); // server
45
46 void send_msg_kexdh_init(); // client
47 void recv_msg_kexdh_reply(); // client
40 48
41 extern const unsigned char dh_p_val[]; 49 extern const unsigned char dh_p_val[];
42 #define DH_P_LEN 128 /* The length of the dh_p_val array */ 50 #define DH_P_LEN 128 /* The length of the dh_p_val array */
43 51
44 extern const int DH_G_VAL; /* == 2 */ 52 extern const int DH_G_VAL; /* == 2 */