Home
last modified time | relevance | path

Searched refs:dh_server_pub (Results 1 – 2 of 2) sorted by relevance

/external/openssh/
Dkexdhc.c100 BIGNUM *dh_server_pub = NULL, *shared_secret = NULL; in input_kex_dh() local
128 if ((dh_server_pub = BN_new()) == NULL) { in input_kex_dh()
133 if ((r = sshpkt_get_bignum2(ssh, dh_server_pub)) != 0 || in input_kex_dh()
139 BN_print_fp(stderr, dh_server_pub); in input_kex_dh()
141 debug("bits %d", BN_num_bits(dh_server_pub)); in input_kex_dh()
143 if (!dh_pub_is_valid(kex->dh, dh_server_pub)) { in input_kex_dh()
155 if ((kout = DH_compute_key(kbuf, dh_server_pub, kex->dh)) < 0 || in input_kex_dh()
173 dh_server_pub, in input_kex_dh()
199 if (dh_server_pub) in input_kex_dh()
200 BN_clear_free(dh_server_pub); in input_kex_dh()
Dkexgexc.c157 BIGNUM *dh_server_pub = NULL, *shared_secret = NULL; in input_kex_dh_gex_reply() local
190 if ((dh_server_pub = BN_new()) == NULL) { in input_kex_dh_gex_reply()
195 if ((r = sshpkt_get_bignum2(ssh, dh_server_pub)) != 0 || in input_kex_dh_gex_reply()
201 BN_print_fp(stderr, dh_server_pub); in input_kex_dh_gex_reply()
203 debug("bits %d", BN_num_bits(dh_server_pub)); in input_kex_dh_gex_reply()
205 if (!dh_pub_is_valid(kex->dh, dh_server_pub)) { in input_kex_dh_gex_reply()
217 if ((kout = DH_compute_key(kbuf, dh_server_pub, kex->dh)) < 0 || in input_kex_dh_gex_reply()
240 dh_server_pub, in input_kex_dh_gex_reply()
266 if (dh_server_pub) in input_kex_dh_gex_reply()
267 BN_clear_free(dh_server_pub); in input_kex_dh_gex_reply()