Lines Matching refs:ssh
55 kexecdh_client(struct ssh *ssh) in kexecdh_client() argument
57 struct kex *kex = ssh->kex; in kexecdh_client()
74 if ((r = sshpkt_start(ssh, SSH2_MSG_KEX_ECDH_INIT)) != 0 || in kexecdh_client()
75 (r = sshpkt_put_ec(ssh, public_key, group)) != 0 || in kexecdh_client()
76 (r = sshpkt_send(ssh)) != 0) in kexecdh_client()
89 ssh_dispatch_set(ssh, SSH2_MSG_KEX_ECDH_REPLY, &input_kex_ecdh_reply); in kexecdh_client()
100 struct ssh *ssh = ctxt; in input_kex_ecdh_reply() local
101 struct kex *kex = ssh->kex; in input_kex_ecdh_reply()
122 if ((r = sshpkt_get_string(ssh, &server_host_key_blob, in input_kex_ecdh_reply()
133 if (kex->verify_host_key(server_host_key, ssh) == -1) { in input_kex_ecdh_reply()
144 if ((r = sshpkt_get_ec(ssh, server_public, group)) != 0 || in input_kex_ecdh_reply()
145 (r = sshpkt_get_string(ssh, &signature, &slen)) != 0 || in input_kex_ecdh_reply()
146 (r = sshpkt_get_end(ssh)) != 0) in input_kex_ecdh_reply()
154 sshpkt_disconnect(ssh, "invalid server public key"); in input_kex_ecdh_reply()
192 hashlen, ssh->compat)) != 0) in input_kex_ecdh_reply()
206 if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0) in input_kex_ecdh_reply()
207 r = kex_send_newkeys(ssh); in input_kex_ecdh_reply()