Lines Matching refs:dh
32 #include <openssl/dh.h>
45 #include "dh.h"
63 kex->dh = dh_new_group1();
66 kex->dh = dh_new_group14();
72 if (kex->dh == NULL) {
77 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0 ||
79 (r = sshpkt_put_bignum2(ssh, kex->dh->pub_key)) != 0 ||
83 DHparams_print_fp(stderr, kex->dh);
85 BN_print_fp(stderr, kex->dh->pub_key);
143 if (!dh_pub_is_valid(kex->dh, dh_server_pub)) {
149 klen = DH_size(kex->dh);
155 if ((kout = DH_compute_key(kbuf, dh_server_pub, kex->dh)) < 0 ||
172 kex->dh->pub_key,
197 DH_free(kex->dh);
198 kex->dh = NULL;