Home | History | Annotate | Download | only in openssh

Lines Matching refs:ssh

53 kexecdh_server(struct ssh *ssh)
56 ssh_dispatch_set(ssh, SSH2_MSG_KEX_ECDH_INIT, &input_kex_ecdh_init);
63 struct ssh *ssh = ctxt;
64 struct kex *kex = ssh->kex;
99 kex->hostkey_nid, ssh);
101 kex->hostkey_nid, ssh);
110 if ((r = sshpkt_get_ec(ssh, client_public, group)) != 0 ||
111 (r = sshpkt_get_end(ssh)) != 0)
119 sshpkt_disconnect(ssh, "invalid client public key");
173 &signature, &slen, hash, hashlen, ssh->compat)) < 0)
180 if ((r = sshpkt_start(ssh, SSH2_MSG_KEX_ECDH_REPLY)) != 0 ||
181 (r = sshpkt_put_string(ssh, server_host_key_blob, sbloblen)) != 0 ||
182 (r = sshpkt_put_ec(ssh, public_key, group)) != 0 ||
183 (r = sshpkt_put_string(ssh, signature, slen)) != 0 ||
184 (r = sshpkt_send(ssh)) != 0)
187 if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0)
188 r = kex_send_newkeys(ssh);