Home | History | Annotate | Download | only in openssh

Lines Matching refs:dh

36 #include <openssl/dh.h>
45 #include "dh.h"
58 DH *dh;
105 dh = PRIVSEP(choose_dh(min, nbits, max));
106 if (dh == NULL)
107 packet_disconnect("Protocol error: no matching DH grp found");
111 packet_put_bignum2(dh->p);
112 packet_put_bignum2(dh->g);
119 dh_gen_key(dh, kex->we_need * 8);
138 DHparams_print_fp(stderr, dh);
140 BN_print_fp(stderr, dh->pub_key);
143 if (!dh_pub_is_valid(dh, dh_client_pub))
144 packet_disconnect("bad client public DH value");
146 klen = DH_size(dh);
148 if ((kout = DH_compute_key(kbuf, dh_client_pub, dh)) < 0)
174 dh->p, dh->g,
176 dh->pub_key,
196 /* send server hostkey, DH pubkey 'f' and singed H */
200 packet_put_bignum2(dh->pub_key); /* f */
206 /* have keys, free DH */
207 DH_free(dh);