diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-07-26 02:44:20 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-07-26 02:44:20 +0000 |
commit | a9c38fb37f5fc8796435c2bcbcdecf35cf802ca6 (patch) | |
tree | a0342c77df2912832910cc72c9fcef0a2f597461 /kex.h | |
parent | f6fce0981d1a351681c58e36d845fa1fa366b398 (diff) |
snapshot of stuff
--HG--
extra : convert_revision : 2903853ba24669d01547710986ad531357602633
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -26,17 +26,25 @@ #define _KEX_H_ #include "includes.h" +#include "algo.h" void send_msg_kexinit(); void recv_msg_kexinit(); -void send_dh_kex(); -void recv_msg_kexdh_init(); void send_msg_newkeys(); void recv_msg_newkeys(); void kexinitialise(); +void gen_kexdh_vals(mp_int *dh_pub, mp_int *dh_priv); +void kexdh_comb_key(mp_int *dh_pub_us, mp_int *dh_priv, mp_int *dh_pub_them, + sign_key *hostkey); -void svr_read_kex(); -void cli_read_kex(); +void read_kex_algos( + algo_type*(buf_match_algo)(buffer*buf, algo_type localalgos[], + int *goodguess)); + +void recv_msg_kexdh_init(); // server + +void send_msg_kexdh_init(); // client +void recv_msg_kexdh_reply(); // client extern const unsigned char dh_p_val[]; #define DH_P_LEN 128 /* The length of the dh_p_val array */ |