Home
last modified time | relevance | path

Searched refs:dh_g (Results 1 – 11 of 11) sorted by relevance

/freebsd-12-stable/crypto/openssh/
Dkexgexs.c77 const BIGNUM *dh_p, *dh_g; in input_kex_dh_gex_request() local
109 DH_get0_pqg(kex->dh, &dh_p, NULL, &dh_g); in input_kex_dh_gex_request()
112 (r = sshpkt_put_bignum2(ssh, dh_g)) != 0 || in input_kex_dh_gex_request()
132 const BIGNUM *pub_key, *dh_p, *dh_g; in input_kex_dh_gex_init() local
167 DH_get0_pqg(kex->dh, &dh_p, NULL, &dh_g); in input_kex_dh_gex_init()
177 dh_p, dh_g, in input_kex_dh_gex_init()
Ddh.c316 BIGNUM *dh_p = NULL, *dh_g = NULL; in dh_new_group_asc() local
321 BN_hex2bn(&dh_g, gen) == 0) in dh_new_group_asc()
323 if (!DH_set0_pqg(dh, dh_p, NULL, dh_g)) in dh_new_group_asc()
329 BN_clear_free(dh_g); in dh_new_group_asc()
Dkexgexc.c149 const BIGNUM *pub_key, *dh_p, *dh_g; in input_kex_dh_gex_reply() local
188 DH_get0_pqg(kex->dh, &dh_p, NULL, &dh_g); in input_kex_dh_gex_reply()
198 dh_p, dh_g, in input_kex_dh_gex_reply()
Dmonitor.c569 const BIGNUM *dh_p, *dh_g; in mm_answer_moduli() local
592 DH_get0_pqg(dh, &dh_p, NULL, &dh_g); in mm_answer_moduli()
595 (r = sshbuf_put_bignum2(m, dh_g)) != 0) in mm_answer_moduli()
/freebsd-12-stable/contrib/wpa/src/tls/
Dtlsv1_cred.h25 u8 *dh_g; /* generator */ member
Dtlsv1_client_i.h58 u8 *dh_g; member
Dtlsv1_cred.c38 os_free(cred->dh_g); in tlsv1_cred_free()
1122 os_free(cred->dh_g); in tlsv1_set_dhparams_der()
1123 cred->dh_g = os_memdup(hdr.payload, hdr.length); in tlsv1_set_dhparams_der()
1124 if (cred->dh_g == NULL) in tlsv1_set_dhparams_der()
Dtlsv1_server_write.c398 conn->cred->dh_g == NULL) { in tls_write_server_key_exchange()
450 if (crypto_mod_exp(conn->cred->dh_g, conn->cred->dh_g_len, in tls_write_server_key_exchange()
524 os_memcpy(pos, conn->cred->dh_g, conn->cred->dh_g_len); in tls_write_server_key_exchange()
Dtlsv1_client_read.c710 conn->dh_g = os_memdup(pos, conn->dh_g_len); in tlsv1_process_diffie_hellman()
711 if (conn->dh_g == NULL) in tlsv1_process_diffie_hellman()
715 conn->dh_g, conn->dh_g_len); in tlsv1_process_diffie_hellman()
716 if (conn->dh_g_len == 1 && conn->dh_g[0] < 2) in tlsv1_process_diffie_hellman()
Dtlsv1_client.c35 os_free(conn->dh_g); in tlsv1_client_free_dh()
37 conn->dh_p = conn->dh_g = conn->dh_ys = NULL; in tlsv1_client_free_dh()
Dtlsv1_client_write.c382 if (crypto_mod_exp(conn->dh_g, conn->dh_g_len, in tlsv1_key_x_dh()