Home
last modified time | relevance | path

Searched refs:dh_p (Results 1 – 6 of 6) sorted by relevance

/openbsd/usr.bin/ssh/
H A Ddh.c235 const BIGNUM *dh_p; in dh_pub_is_valid() local
237 DH_get0_pqg(dh, &dh_p, NULL, NULL); in dh_pub_is_valid()
270 bits_set, BN_num_bits(dh_p)); in dh_pub_is_valid()
280 const BIGNUM *dh_p, *pub_key; in dh_gen_key() local
282 DH_get0_pqg(dh, &dh_p, NULL, NULL); in dh_gen_key()
284 if (need < 0 || dh_p == NULL || in dh_gen_key()
285 (pbits = BN_num_bits(dh_p)) <= 0 || in dh_gen_key()
309 BIGNUM *dh_p = NULL, *dh_g = NULL; in dh_new_group_asc() local
313 if (BN_hex2bn(&dh_p, modulus) == 0 || in dh_new_group_asc()
316 if (!DH_set0_pqg(dh, dh_p, NULL, dh_g)) in dh_new_group_asc()
[all …]
H A Dkexgexs.c69 const BIGNUM *dh_p, *dh_g; in input_kex_dh_gex_request() local
101 DH_get0_pqg(kex->dh, &dh_p, NULL, &dh_g); in input_kex_dh_gex_request()
103 (r = sshpkt_put_bignum2(ssh, dh_p)) != 0 || in input_kex_dh_gex_request()
124 const BIGNUM *pub_key, *dh_p, *dh_g; in input_kex_dh_gex_init() local
159 DH_get0_pqg(kex->dh, &dh_p, NULL, &dh_g); in input_kex_dh_gex_init()
169 dh_p, dh_g, in input_kex_dh_gex_init()
H A Dkexgexc.c142 const BIGNUM *pub_key, *dh_p, *dh_g; in input_kex_dh_gex_reply() local
181 DH_get0_pqg(kex->dh, &dh_p, NULL, &dh_g); in input_kex_dh_gex_reply()
191 dh_p, dh_g, in input_kex_dh_gex_reply()
H A Dmonitor.c594 const BIGNUM *dh_p, *dh_g; in mm_answer_moduli() local
617 DH_get0_pqg(dh, &dh_p, NULL, &dh_g); in mm_answer_moduli()
619 (r = sshbuf_put_bignum2(m, dh_p)) != 0 || in mm_answer_moduli()
/openbsd/lib/libssl/
H A Dssl_kex.c106 CBB dh_p, dh_g; in ssl_kex_params_dhe() local
114 if (!CBB_add_u16_length_prefixed(cbb, &dh_p)) in ssl_kex_params_dhe()
116 if (!CBB_add_space(&dh_p, &data, dh_p_len)) in ssl_kex_params_dhe()
162 CBS dh_p, dh_g; in ssl_kex_peer_params_dhe() local
168 if (!CBS_get_u16_length_prefixed(cbs, &dh_p)) { in ssl_kex_peer_params_dhe()
177 if ((p = BN_bin2bn(CBS_data(&dh_p), CBS_len(&dh_p), NULL)) == NULL) in ssl_kex_peer_params_dhe()
/openbsd/regress/lib/libssl/ssl/
H A Dssltest.c1454 BIGNUM *dh_p = NULL, *dh_g = NULL; in get_dh1024() local
1459 dh_p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL); in get_dh1024()
1461 if (dh_p == NULL || dh_g == NULL) in get_dh1024()
1464 if (!DH_set0_pqg(dh, dh_p, NULL, dh_g)) in get_dh1024()
1470 BN_free(dh_p); in get_dh1024()
1506 BIGNUM *dh_p = NULL, *dh_g = NULL; in get_dh1024dsa() local
1511 dh_p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL); in get_dh1024dsa()
1513 if (dh_p == NULL || dh_g == NULL) in get_dh1024dsa()
1516 if (!DH_set0_pqg(dh, dh_p, NULL, dh_g)) in get_dh1024dsa()
1524 BN_free(dh_p); in get_dh1024dsa()