Lines Matching refs:Kex
42 #include "kex.h"
50 kexgex_client(Kex *kex)
61 nbits = dh_estimate(kex->we_need * 8);
105 dh_gen_key(dh, kex->we_need * 8);
128 if (server_host_key->type != kex->hostkey_type)
130 if (kex->verify_host_key == NULL)
132 if (kex->verify_host_key(server_host_key) == -1)
173 kex->evp_md,
174 kex->client_version_string,
175 kex->server_version_string,
176 buffer_ptr(&kex->my), buffer_len(&kex->my),
177 buffer_ptr(&kex->peer), buffer_len(&kex->peer),
198 if (kex->session_id == NULL) {
199 kex->session_id_len = hashlen;
200 kex->session_id = xmalloc(kex->session_id_len);
201 memcpy(kex->session_id, hash, kex->session_id_len);
203 kex_derive_keys(kex, hash, hashlen, shared_secret);
206 kex_finish(kex);