Home | History | Annotate | Download | only in openssh

Lines Matching refs:dh

31 #include <openssl/dh.h>
45 #include "dh.h"
59 DH *dh;
104 dh = dh_new_group(g, p);
105 dh_gen_key(dh, kex->we_need * 8);
108 DHparams_print_fp(stderr, dh);
110 BN_print_fp(stderr, dh->pub_key);
115 /* generate and send 'e', client DH public key */
117 packet_put_bignum2(dh->pub_key);
135 /* DH parameter f, server public DH key */
151 if (!dh_pub_is_valid(dh, dh_server_pub))
152 packet_disconnect("bad server public DH value");
154 klen = DH_size(dh);
156 if ((kout = DH_compute_key(kbuf, dh_server_pub, dh)) < 0)
180 dh->p, dh->g,
181 dh->pub_key,
187 /* have keys, free DH */
188 DH_free(dh);