Home | History | Annotate | Download | only in openssh

Lines Matching refs:kex

39 #include "kex.h"
50 kexecdh_client(Kex *kex)
62 if ((curve_nid = kex_ecdh_name_to_nid(kex->name)) == -1)
63 fatal("%s: unsupported ECDH curve \"%s\"", __func__, kex->name);
88 if (server_host_key->type != kex->hostkey_type)
90 if (kex->verify_host_key == NULL)
92 if (kex->verify_host_key(server_host_key) == -1)
130 kex->evp_md,
132 kex->client_version_string,
133 kex->server_version_string,
134 buffer_ptr(&kex->my), buffer_len(&kex->my),
135 buffer_ptr(&kex->peer), buffer_len(&kex->peer),
152 if (kex->session_id == NULL) {
153 kex->session_id_len = hashlen;
154 kex->session_id = xmalloc(kex->session_id_len);
155 memcpy(kex->session_id, hash, kex->session_id_len);
158 kex_derive_keys(kex, hash, hashlen, shared_secret);
160 kex_finish(kex);
164 kexecdh_client(Kex *kex)