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