Lines Matching refs:ssh
50 kexc25519_client(struct ssh *ssh) in kexc25519_client() argument
52 struct kex *kex = ssh->kex; in kexc25519_client()
60 if ((r = sshpkt_start(ssh, SSH2_MSG_KEX_ECDH_INIT)) != 0 || in kexc25519_client()
61 (r = sshpkt_put_string(ssh, kex->c25519_client_pubkey, in kexc25519_client()
63 (r = sshpkt_send(ssh)) != 0) in kexc25519_client()
67 ssh_dispatch_set(ssh, SSH2_MSG_KEX_ECDH_REPLY, &input_kex_c25519_reply); in kexc25519_client()
74 struct ssh *ssh = ctxt; in input_kex_c25519_reply() local
75 struct kex *kex = ssh->kex; in input_kex_c25519_reply()
90 if ((r = sshpkt_get_string(ssh, &server_host_key_blob, in input_kex_c25519_reply()
101 if (kex->verify_host_key(server_host_key, ssh) == -1) { in input_kex_c25519_reply()
108 if ((r = sshpkt_get_string(ssh, &server_pubkey, &pklen)) != 0 || in input_kex_c25519_reply()
109 (r = sshpkt_get_string(ssh, &signature, &slen)) != 0 || in input_kex_c25519_reply()
110 (r = sshpkt_get_end(ssh)) != 0) in input_kex_c25519_reply()
145 ssh->compat)) != 0) in input_kex_c25519_reply()
159 if ((r = kex_derive_keys(ssh, hash, hashlen, shared_secret)) == 0) in input_kex_c25519_reply()
160 r = kex_send_newkeys(ssh); in input_kex_c25519_reply()