comparison kex.h @ 759:76fba0856749 ecc

More changes for KEX and ECDH. Set up hash descriptors, make ECC code work, ses.hash and ses.session_id are now buffers (doesn't compile)
author Matt Johnston <matt@ucc.asn.au>
date Fri, 29 Mar 2013 00:28:09 +0800
parents bf9dc2d9c2b1
children 7dcb46da72d9
comparison
equal deleted inserted replaced
758:1c607a62d235 759:76fba0856749
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 #include "algo.h"
30 #include "signkey.h"
30 31
31 void send_msg_kexinit(); 32 void send_msg_kexinit();
32 void recv_msg_kexinit(); 33 void recv_msg_kexinit();
33 void send_msg_newkeys(); 34 void send_msg_newkeys();
34 void recv_msg_newkeys(); 35 void recv_msg_newkeys();
72 unsigned int datarecv; /* data received since last kex */ 73 unsigned int datarecv; /* data received since last kex */
73 74
74 }; 75 };
75 76
76 #define DH_P_1_LEN 128 77 #define DH_P_1_LEN 128
77 extern const const unsigned char dh_p_1[DH_P_1_LEN]; 78 extern const unsigned char dh_p_1[DH_P_1_LEN];
78 #define DH_P_14_LEN 256 79 #define DH_P_14_LEN 256
79 const unsigned char dh_p_14[DH_P_14_LEN] = { 80 extern const unsigned char dh_p_14[DH_P_14_LEN];
80 81
81 struct kex_dh_param { 82 struct kex_dh_param {
82 mp_int pub; 83 mp_int pub;
83 mp_int priv; 84 mp_int priv;
84 }; 85 };