Lines Matching refs:ssh
47 kexc25519_server(struct ssh *ssh)
50 ssh_dispatch_set(ssh, SSH2_MSG_KEX_ECDH_INIT, &input_kex_c25519_init);
57 struct ssh *ssh = ctxt;
58 struct kex *kex = ssh->kex;
80 kex->hostkey_nid, ssh);
82 kex->hostkey_nid, ssh);
88 if ((r = sshpkt_get_string(ssh, &client_pubkey, &pklen)) != 0 ||
89 (r = sshpkt_get_end(ssh)) != 0)
138 &signature, &slen, hash, hashlen, ssh->compat)) < 0)
142 if ((r = sshpkt_start(ssh, SSH2_MSG_KEX_ECDH_REPLY)) != 0 ||
143 (r = sshpkt_put_string(ssh, server_host_key_blob, sbloblen)) != 0 ||
144 (r = sshpkt_put_string(ssh, server_pubkey, sizeof(server_pubkey))) != 0 ||
145 (r = sshpkt_put_string(ssh, signature, slen)) != 0 ||
146 (r = sshpkt_send(ssh)) != 0)
149 if ((r = kex_derive_keys(ssh, hash, hashlen, shared_secret)) == 0)
150 r = kex_send_newkeys(ssh);