Home
last modified time | relevance | path

Searched refs:dh_p (Results 1 – 19 of 19) 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.c40 os_free(cred->dh_p); in tlsv1_cred_free()
380 os_free(cred->dh_p); in tlsv1_set_dhparams_der()
381 cred->dh_p = os_malloc(hdr.length); in tlsv1_set_dhparams_der()
382 if (cred->dh_p == NULL) in tlsv1_set_dhparams_der()
384 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.c274 if (conn->cred == NULL || conn->cred->dh_p == NULL || in tls_write_server_key_exchange()
301 if (os_memcmp(conn->dh_secret, conn->cred->dh_p, conn->dh_secret_len) > in tls_write_server_key_exchange()
328 conn->cred->dh_p, conn->cred->dh_p_len, in tls_write_server_key_exchange()
386 os_memcpy(pos, conn->cred->dh_p, conn->cred->dh_p_len); in tls_write_server_key_exchange()
Dtlsv1_client_i.h58 u8 *dh_p; member
Dtlsv1_client_read.c430 conn->dh_p = os_malloc(conn->dh_p_len); in tlsv1_process_diffie_hellman()
431 if (conn->dh_p == NULL) in tlsv1_process_diffie_hellman()
433 os_memcpy(conn->dh_p, pos, conn->dh_p_len); in tlsv1_process_diffie_hellman()
436 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.c618 if (conn->cred == NULL || conn->cred->dh_p == NULL || in tls_process_client_key_exchange_dh_anon()
639 conn->cred->dh_p, conn->cred->dh_p_len, in tls_process_client_key_exchange_dh_anon()
/external/wpa_supplicant/
Dtlsv1_client.c75 u8 *dh_p; member
627 os_free(conn->dh_p); in tlsv1_client_free_dh()
630 conn->dh_p = conn->dh_g = conn->dh_ys = NULL; in tlsv1_client_free_dh()
650 conn->dh_p = os_malloc(conn->dh_p_len); in tlsv1_process_diffie_hellman()
651 if (conn->dh_p == NULL) in tlsv1_process_diffie_hellman()
653 os_memcpy(conn->dh_p, pos, conn->dh_p_len); in tlsv1_process_diffie_hellman()
656 conn->dh_p, conn->dh_p_len); in tlsv1_process_diffie_hellman()
1244 if (os_memcmp(csecret, conn->dh_p, csecret_len) > 0) in tlsv1_key_x_anon_dh()
1268 conn->dh_p, conn->dh_p_len, in tlsv1_key_x_anon_dh()
1303 conn->dh_p, conn->dh_p_len, in tlsv1_key_x_anon_dh()