Lines Matching refs:kex
38 #include "kex.h"
52 struct kex *kex = ssh->kex;
55 kexc25519_keygen(kex->c25519_client_key, kex->c25519_client_pubkey);
57 dump_digest("client private key:", kex->c25519_client_key,
58 sizeof(kex->c25519_client_key));
61 (r = sshpkt_put_string(ssh, kex->c25519_client_pubkey,
62 sizeof(kex->c25519_client_pubkey))) != 0 ||
75 struct kex *kex = ssh->kex;
84 if (kex->verify_host_key == NULL) {
95 if (server_host_key->type != kex->hostkey_type ||
96 (kex->hostkey_type == KEY_ECDSA &&
97 server_host_key->ecdsa_nid != kex->hostkey_nid)) {
101 if (kex->verify_host_key(server_host_key, ssh) == -1) {
125 if ((r = kexc25519_shared_key(kex->c25519_client_key, server_pubkey,
132 kex->hash_alg,
133 kex->client_version_string,
134 kex->server_version_string,
135 sshbuf_ptr(kex->my), sshbuf_len(kex->my),
136 sshbuf_ptr(kex->peer), sshbuf_len(kex->peer),
138 kex->c25519_client_pubkey,
149 if (kex->session_id == NULL) {
150 kex->session_id_len = hashlen;
151 kex->session_id = malloc(kex->session_id_len);
152 if (kex->session_id == NULL) {
156 memcpy(kex->session_id, hash, kex->session_id_len);
163 explicit_bzero(kex->c25519_client_key, sizeof(kex->c25519_client_key));