Lines Matching refs:dh
98 kex->dh = PRIVSEP(choose_dh(min, nbits, max)); in input_kex_dh_gex_request()
99 if (kex->dh == NULL) { in input_kex_dh_gex_request()
106 (r = sshpkt_put_bignum2(ssh, kex->dh->p)) != 0 || in input_kex_dh_gex_request()
107 (r = sshpkt_put_bignum2(ssh, kex->dh->g)) != 0 || in input_kex_dh_gex_request()
112 if ((r = dh_gen_key(kex->dh, kex->we_need * 8)) != 0) in input_kex_dh_gex_request()
166 DHparams_print_fp(stderr, kex->dh); in input_kex_dh_gex_init()
168 BN_print_fp(stderr, kex->dh->pub_key); in input_kex_dh_gex_init()
171 if (!dh_pub_is_valid(kex->dh, dh_client_pub)) { in input_kex_dh_gex_init()
177 klen = DH_size(kex->dh); in input_kex_dh_gex_init()
183 if ((kout = DH_compute_key(kbuf, dh_client_pub, kex->dh)) < 0 || in input_kex_dh_gex_init()
204 kex->dh->p, kex->dh->g, in input_kex_dh_gex_init()
206 kex->dh->pub_key, in input_kex_dh_gex_init()
232 (r = sshpkt_put_bignum2(ssh, kex->dh->pub_key)) != 0 || /* f */ in input_kex_dh_gex_init()
240 DH_free(kex->dh); in input_kex_dh_gex_init()
241 kex->dh = NULL; in input_kex_dh_gex_init()