Home
last modified time | relevance | path

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

/external/openssh/
Dkexdhs.c91 BIGNUM *shared_secret = NULL, *dh_client_pub = NULL; in input_kex_dh_init() local
114 if ((dh_client_pub = BN_new()) == NULL) { in input_kex_dh_init()
118 if ((r = sshpkt_get_bignum2(ssh, dh_client_pub)) != 0 || in input_kex_dh_init()
124 BN_print_fp(stderr, dh_client_pub); in input_kex_dh_init()
126 debug("bits %d", BN_num_bits(dh_client_pub)); in input_kex_dh_init()
135 if (!dh_pub_is_valid(kex->dh, dh_client_pub)) { in input_kex_dh_init()
147 if ((kout = DH_compute_key(kbuf, dh_client_pub, kex->dh)) < 0 || in input_kex_dh_init()
166 dh_client_pub, in input_kex_dh_init()
204 if (dh_client_pub) in input_kex_dh_init()
205 BN_clear_free(dh_client_pub); in input_kex_dh_init()
Dkexgexs.c150 BIGNUM *shared_secret = NULL, *dh_client_pub = NULL; in input_kex_dh_gex_init() local
173 if ((dh_client_pub = BN_new()) == NULL) { in input_kex_dh_gex_init()
177 if ((r = sshpkt_get_bignum2(ssh, dh_client_pub)) != 0 || in input_kex_dh_gex_init()
183 BN_print_fp(stderr, dh_client_pub); in input_kex_dh_gex_init()
185 debug("bits %d", BN_num_bits(dh_client_pub)); in input_kex_dh_gex_init()
194 if (!dh_pub_is_valid(kex->dh, dh_client_pub)) { in input_kex_dh_gex_init()
206 if ((kout = DH_compute_key(kbuf, dh_client_pub, kex->dh)) < 0 || in input_kex_dh_gex_init()
228 dh_client_pub, in input_kex_dh_gex_init()
265 if (dh_client_pub) in input_kex_dh_gex_init()
266 BN_clear_free(dh_client_pub); in input_kex_dh_gex_init()