comparison kex.h @ 1224:82e2037d34ea

Move dh group constants to a separate file
author Matt Johnston <matt@ucc.asn.au>
date Thu, 14 Jan 2016 21:54:58 +0800
parents deed0571cacc
children 9169e4e7cbee
comparison
equal deleted inserted replaced
1223:5b4024eba55b 1224:82e2037d34ea
81 unsigned int datatrans; /* data transmitted since last kex */ 81 unsigned int datatrans; /* data transmitted since last kex */
82 unsigned int datarecv; /* data received since last kex */ 82 unsigned int datarecv; /* data received since last kex */
83 83
84 }; 84 };
85 85
86 #define DH_P_1_LEN 128
87 extern const unsigned char dh_p_1[DH_P_1_LEN];
88 #define DH_P_14_LEN 256
89 extern const unsigned char dh_p_14[DH_P_14_LEN];
90
91 struct kex_dh_param { 86 struct kex_dh_param {
92 mp_int pub; /* e */ 87 mp_int pub; /* e */
93 mp_int priv; /* x */ 88 mp_int priv; /* x */
94 }; 89 };
95 90