Lines Matching refs:dh
33 #include <openssl/dh.h>
46 #include "dh.h"
122 if ((kex->dh = dh_new_group(g, p)) == NULL) {
126 p = g = NULL; /* belong to kex->dh now */
129 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0 ||
131 (r = sshpkt_put_bignum2(ssh, kex->dh->pub_key)) != 0 ||
136 DHparams_print_fp(stderr, kex->dh);
138 BN_print_fp(stderr, kex->dh->pub_key);
205 if (!dh_pub_is_valid(kex->dh, dh_server_pub)) {
211 klen = DH_size(kex->dh);
217 if ((kout = DH_compute_key(kbuf, dh_server_pub, kex->dh)) < 0 ||
238 kex->dh->p, kex->dh->g,
239 kex->dh->pub_key,
264 DH_free(kex->dh);
265 kex->dh = NULL;