comparison session.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 ac2158e3e403
comparison
equal deleted inserted replaced
758:1c607a62d235 759:76fba0856749
152 152
153 /* KEX/encryption related */ 153 /* KEX/encryption related */
154 struct KEXState kexstate; 154 struct KEXState kexstate;
155 struct key_context *keys; 155 struct key_context *keys;
156 struct key_context *newkeys; 156 struct key_context *newkeys;
157 unsigned char *session_id; /* this is the hash from the first kex */ 157 buffer *session_id; /* this is the hash from the first kex */
158 /* The below are used temorarily during kex, are freed after use */ 158 /* The below are used temporarily during kex, are freed after use */
159 mp_int * dh_K; /* SSH_MSG_KEXDH_REPLY and sending SSH_MSH_NEWKEYS */ 159 mp_int * dh_K; /* SSH_MSG_KEXDH_REPLY and sending SSH_MSH_NEWKEYS */
160 unsigned char hash[SHA1_HASH_SIZE]; /* the hash*/ 160 buffer *hash/* the session hash */
161 buffer* kexhashbuf; /* session hash buffer calculated from various packets*/ 161 buffer* kexhashbuf; /* session hash buffer calculated from various packets*/
162 buffer* transkexinit; /* the kexinit packet we send should be kept so we 162 buffer* transkexinit; /* the kexinit packet we send should be kept so we
163 can add it to the hash when generating keys */ 163 can add it to the hash when generating keys */
164 164
165 /* Enables/disables compression */ 165 /* Enables/disables compression */