Lines Matching refs:dh
52 kex->dh = dh_new_group1(); in kex_dh_keygen()
56 kex->dh = dh_new_group14(); in kex_dh_keygen()
59 kex->dh = dh_new_group16(); in kex_dh_keygen()
62 kex->dh = dh_new_group18(); in kex_dh_keygen()
67 if (kex->dh == NULL) in kex_dh_keygen()
69 return (dh_gen_key(kex->dh, kex->we_need * 8)); in kex_dh_keygen()
85 DHparams_print_fp(stderr, kex->dh); in kex_dh_compute_key()
89 if (!dh_pub_is_valid(kex->dh, dh_pub)) { in kex_dh_compute_key()
93 klen = DH_size(kex->dh); in kex_dh_compute_key()
99 if ((kout = DH_compute_key(kbuf, dh_pub, kex->dh)) < 0 || in kex_dh_compute_key()
123 DH_get0_key(kex->dh, &pub_key, NULL); in kex_dh_keypair()
130 DHparams_print_fp(stderr, kex->dh); in kex_dh_keypair()
155 DH_get0_key(kex->dh, &pub_key, NULL); in kex_dh_enc()
168 DH_free(kex->dh); in kex_dh_enc()
169 kex->dh = NULL; in kex_dh_enc()
198 DH_free(kex->dh); in kex_dh_dec()
199 kex->dh = NULL; in kex_dh_dec()