Home | History | Annotate | Download | only in openssh

Lines Matching refs:Kex

37 #include "kex.h"
52 kexecdh_server(Kex *kex)
64 if ((curve_nid = kex_ecdh_name_to_nid(kex->name)) == -1)
65 fatal("%s: unsupported ECDH curve \"%s\"", __func__, kex->name);
77 if (kex->load_host_public_key == NULL ||
78 kex->load_host_private_key == NULL)
80 server_host_public = kex->load_host_public_key(kex->hostkey_type);
82 fatal("Unsupported hostkey type %d", kex->hostkey_type);
83 server_host_private = kex->load_host_private_key(kex->hostkey_type);
86 kex->hostkey_type);
123 kex->evp_md,
125 kex->client_version_string,
126 kex->server_version_string,
127 buffer_ptr(&kex->peer), buffer_len(&kex->peer),
128 buffer_ptr(&kex->my), buffer_len(&kex->my),
138 if (kex->session_id == NULL) {
139 kex->session_id_len = hashlen;
140 kex->session_id = xmalloc(kex->session_id_len);
141 memcpy(kex->session_id, hash, kex->session_id_len);
163 kex_derive_keys(kex, hash, hashlen, shared_secret);
165 kex_finish(kex);
169 kexecdh_server(Kex *kex)