Home
last modified time | relevance | path

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

/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DServerKeyExchangeTest.java88 BigInteger dh_p = new BigInteger("1234567890"); in testServerKeyExchange_DHE_DSS() local
93 ServerKeyExchange message = new ServerKeyExchange(dh_p, dh_g, dh_Ys, in testServerKeyExchange_DHE_DSS()
100 assertEquals("incorrect ServerKeyExchange", dh_p, message.par1); in testServerKeyExchange_DHE_DSS()
140 BigInteger dh_p = new BigInteger("1234567890"); in testServerKeyExchange_DH_anon() local
143 ServerKeyExchange message = new ServerKeyExchange(dh_p, dh_g, dh_Ys, in testServerKeyExchange_DH_anon()
149 assertEquals("incorrect ServerKeyExchange", dh_p, message.par1); in testServerKeyExchange_DH_anon()
/external/dropbear/
Dcommon-kex.c476 DEF_MP_INT(dh_p); in gen_kexdh_vals()
482 m_mp_init_multi(&dh_g, &dh_p, &dh_q, NULL); in gen_kexdh_vals()
485 bytes_to_mp(&dh_p, (unsigned char*)dh_p_val, DH_P_LEN); in gen_kexdh_vals()
493 if (mp_sub_d(&dh_p, 1, dh_priv) != MP_OKAY) { in gen_kexdh_vals()
504 if (mp_exptmod(&dh_g, dh_priv, &dh_p, dh_pub) != MP_OKAY) { in gen_kexdh_vals()
507 mp_clear_multi(&dh_g, &dh_p, &dh_q, NULL); in gen_kexdh_vals()
517 mp_int dh_p; in kexdh_comb_key() local
522 m_mp_init(&dh_p); in kexdh_comb_key()
523 bytes_to_mp(&dh_p, dh_p_val, DH_P_LEN); in kexdh_comb_key()
526 if (mp_cmp(dh_pub_them, &dh_p) != MP_LT in kexdh_comb_key()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/tls/
Dtlsv1_cred.c40 os_free(cred->dh_p); in tlsv1_cred_free()
309 os_free(cred->dh_p); in tlsv1_set_dhparams_der()
310 cred->dh_p = os_malloc(hdr.length); in tlsv1_set_dhparams_der()
311 if (cred->dh_p == NULL) in tlsv1_set_dhparams_der()
313 os_memcpy(cred->dh_p, hdr.payload, hdr.length); in tlsv1_set_dhparams_der()
Dtlsv1_cred.h24 u8 *dh_p; /* prime */ member
Dtlsv1_server_write.c276 if (conn->cred == NULL || conn->cred->dh_p == NULL || in tls_write_server_key_exchange()
303 if (os_memcmp(conn->dh_secret, conn->cred->dh_p, conn->dh_secret_len) > in tls_write_server_key_exchange()
330 conn->cred->dh_p, conn->cred->dh_p_len, in tls_write_server_key_exchange()
388 os_memcpy(pos, conn->cred->dh_p, conn->cred->dh_p_len); in tls_write_server_key_exchange()
Dtlsv1_client_i.h57 u8 *dh_p; member
Dtlsv1_client_read.c429 conn->dh_p = os_malloc(conn->dh_p_len); in tlsv1_process_diffie_hellman()
430 if (conn->dh_p == NULL) in tlsv1_process_diffie_hellman()
432 os_memcpy(conn->dh_p, pos, conn->dh_p_len); in tlsv1_process_diffie_hellman()
435 conn->dh_p, conn->dh_p_len); in tlsv1_process_diffie_hellman()
Dtlsv1_client_write.c235 if (os_memcmp(csecret, conn->dh_p, csecret_len) > 0) in tlsv1_key_x_anon_dh()
259 conn->dh_p, conn->dh_p_len, in tlsv1_key_x_anon_dh()
300 conn->dh_p, conn->dh_p_len, in tlsv1_key_x_anon_dh()
Dtlsv1_client.c39 os_free(conn->dh_p); in tlsv1_client_free_dh()
42 conn->dh_p = conn->dh_g = conn->dh_ys = NULL; in tlsv1_client_free_dh()
Dtlsv1_server_read.c619 if (conn->cred == NULL || conn->cred->dh_p == NULL || in tls_process_client_key_exchange_dh_anon()
640 conn->cred->dh_p, conn->cred->dh_p_len, in tls_process_client_key_exchange_dh_anon()
/external/wpa_supplicant_8/src/tls/
Dtlsv1_cred.c34 os_free(cred->dh_p); in tlsv1_cred_free()
393 os_free(cred->dh_p); in tlsv1_set_dhparams_der()
394 cred->dh_p = os_malloc(hdr.length); in tlsv1_set_dhparams_der()
395 if (cred->dh_p == NULL) in tlsv1_set_dhparams_der()
397 os_memcpy(cred->dh_p, hdr.payload, hdr.length); in tlsv1_set_dhparams_der()
Dtlsv1_cred.h18 u8 *dh_p; /* prime */ member
Dtlsv1_client_i.h52 u8 *dh_p; member
Dtlsv1_server_write.c271 if (conn->cred == NULL || conn->cred->dh_p == NULL || in tls_write_server_key_exchange()
298 if (os_memcmp(conn->dh_secret, conn->cred->dh_p, conn->dh_secret_len) > in tls_write_server_key_exchange()
325 conn->cred->dh_p, conn->cred->dh_p_len, in tls_write_server_key_exchange()
383 os_memcpy(pos, conn->cred->dh_p, conn->cred->dh_p_len); in tls_write_server_key_exchange()
Dtlsv1_client_read.c431 conn->dh_p = os_malloc(conn->dh_p_len); in tlsv1_process_diffie_hellman()
432 if (conn->dh_p == NULL) in tlsv1_process_diffie_hellman()
434 os_memcpy(conn->dh_p, pos, conn->dh_p_len); in tlsv1_process_diffie_hellman()
437 conn->dh_p, conn->dh_p_len); in tlsv1_process_diffie_hellman()
Dtlsv1_client_write.c232 if (os_memcmp(csecret, conn->dh_p, csecret_len) > 0) in tlsv1_key_x_anon_dh()
256 conn->dh_p, conn->dh_p_len, in tlsv1_key_x_anon_dh()
297 conn->dh_p, conn->dh_p_len, in tlsv1_key_x_anon_dh()
Dtlsv1_client.c33 os_free(conn->dh_p); in tlsv1_client_free_dh()
36 conn->dh_p = conn->dh_g = conn->dh_ys = NULL; in tlsv1_client_free_dh()
Dtlsv1_server_read.c636 if (conn->cred == NULL || conn->cred->dh_p == NULL || in tls_process_client_key_exchange_dh_anon()
657 conn->cred->dh_p, conn->cred->dh_p_len, in tls_process_client_key_exchange_dh_anon()