summaryrefslogtreecommitdiffhomepage
path: root/kex.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-07-26 02:44:20 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-07-26 02:44:20 +0000
commita9c38fb37f5fc8796435c2bcbcdecf35cf802ca6 (patch)
treea0342c77df2912832910cc72c9fcef0a2f597461 /kex.h
parentf6fce0981d1a351681c58e36d845fa1fa366b398 (diff)
snapshot of stuff
--HG-- extra : convert_revision : 2903853ba24669d01547710986ad531357602633
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/kex.h b/kex.h
index 61b022e..e6c8ac1 100644
--- a/kex.h
+++ b/kex.h
@@ -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 */