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