Lines Matching defs:kex
37 #include "kex.h"
58 struct kex *kex = ssh->kex;
74 if (kex->load_host_public_key == NULL ||
75 kex->load_host_private_key == NULL) {
79 server_host_public = kex->load_host_public_key(kex->hostkey_type,
80 kex->hostkey_nid, ssh);
81 server_host_private = kex->load_host_private_key(kex->hostkey_type,
82 kex->hostkey_nid, ssh);
113 kex->hash_alg,
114 kex->client_version_string,
115 kex->server_version_string,
116 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
117 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
126 if (kex->session_id == NULL) {
127 kex->session_id_len = hashlen;
128 kex->session_id = malloc(kex->session_id_len);
129 if (kex->session_id == NULL) {
133 memcpy(kex->session_id, hash, kex->session_id_len);
137 if ((r = kex->sign(server_host_private, server_host_public, &signature,
138 &slen, hash, hashlen, kex->hostkey_alg, ssh->compat)) < 0)