Home
last modified time | relevance | path

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

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Dtlsv1_server.c838 void tlsv1_server_get_dh_p(struct tlsv1_server *conn, const u8 **dh_p, in tlsv1_server_get_dh_p() argument
841 *dh_p = conn->cred->dh_p; in tlsv1_server_get_dh_p()
847 *dh_p = test_tls_prime511b; in tlsv1_server_get_dh_p()
851 *dh_p = test_tls_prime767b; in tlsv1_server_get_dh_p()
855 *dh_p = test_tls_prime15; in tlsv1_server_get_dh_p()
859 *dh_p = test_tls_prime58; in tlsv1_server_get_dh_p()
863 *dh_p = test_tls_non_prime; in tlsv1_server_get_dh_p()
Dtlsv1_server_write.c377 const u8 *dh_p; in tls_write_server_key_exchange() local
397 if (conn->cred == NULL || conn->cred->dh_p == NULL || in tls_write_server_key_exchange()
404 tlsv1_server_get_dh_p(conn, &dh_p, &dh_p_len); in tls_write_server_key_exchange()
426 if (os_memcmp(conn->dh_secret, dh_p, conn->dh_secret_len) > 0) in tls_write_server_key_exchange()
452 dh_p, dh_p_len, dh_ys, &dh_ys_len)) { in tls_write_server_key_exchange()
510 os_memcpy(pos, dh_p, dh_p_len); in tls_write_server_key_exchange()
Dtlsv1_cred.h23 u8 *dh_p; /* prime */ member
Dtlsv1_server_i.h86 void tlsv1_server_get_dh_p(struct tlsv1_server *conn, const u8 **dh_p,
Dtlsv1_client_i.h55 u8 *dh_p; member
Dtlsv1_cred.c37 os_free(cred->dh_p); in tlsv1_cred_free()
1105 os_free(cred->dh_p); in tlsv1_set_dhparams_der()
1106 cred->dh_p = os_memdup(hdr.payload, hdr.length); in tlsv1_set_dhparams_der()
1107 if (cred->dh_p == NULL) in tlsv1_set_dhparams_der()
Dtlsv1_server_read.c709 const u8 *dh_p; in tls_process_client_key_exchange_dh() local
754 if (conn->cred == NULL || conn->cred->dh_p == NULL || in tls_process_client_key_exchange_dh()
762 tlsv1_server_get_dh_p(conn, &dh_p, &dh_p_len); in tls_process_client_key_exchange_dh()
776 conn->dh_secret_len, dh_p, dh_p_len, in tls_process_client_key_exchange_dh()
Dtlsv1_client_write.c360 if (os_memcmp(csecret, conn->dh_p, csecret_len) > 0) in tlsv1_key_x_dh()
384 conn->dh_p, conn->dh_p_len, in tlsv1_key_x_dh()
432 conn->dh_p, conn->dh_p_len, in tlsv1_key_x_dh()
Dtlsv1_client.c34 os_free(conn->dh_p); in tlsv1_client_free_dh()
37 conn->dh_p = conn->dh_g = conn->dh_ys = NULL; in tlsv1_client_free_dh()
Dtlsv1_client_read.c696 conn->dh_p = os_memdup(pos, conn->dh_p_len); in tlsv1_process_diffie_hellman()
697 if (conn->dh_p == NULL) in tlsv1_process_diffie_hellman()
701 conn->dh_p, conn->dh_p_len); in tlsv1_process_diffie_hellman()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Dtlsv1_server.c838 void tlsv1_server_get_dh_p(struct tlsv1_server *conn, const u8 **dh_p, in tlsv1_server_get_dh_p() argument
841 *dh_p = conn->cred->dh_p; in tlsv1_server_get_dh_p()
847 *dh_p = test_tls_prime511b; in tlsv1_server_get_dh_p()
851 *dh_p = test_tls_prime767b; in tlsv1_server_get_dh_p()
855 *dh_p = test_tls_prime15; in tlsv1_server_get_dh_p()
859 *dh_p = test_tls_prime58; in tlsv1_server_get_dh_p()
863 *dh_p = test_tls_non_prime; in tlsv1_server_get_dh_p()
Dtlsv1_server_write.c377 const u8 *dh_p; in tls_write_server_key_exchange() local
397 if (conn->cred == NULL || conn->cred->dh_p == NULL || in tls_write_server_key_exchange()
404 tlsv1_server_get_dh_p(conn, &dh_p, &dh_p_len); in tls_write_server_key_exchange()
426 if (os_memcmp(conn->dh_secret, dh_p, conn->dh_secret_len) > 0) in tls_write_server_key_exchange()
452 dh_p, dh_p_len, dh_ys, &dh_ys_len)) { in tls_write_server_key_exchange()
510 os_memcpy(pos, dh_p, dh_p_len); in tls_write_server_key_exchange()
Dtlsv1_cred.h23 u8 *dh_p; /* prime */ member
Dtlsv1_server_i.h86 void tlsv1_server_get_dh_p(struct tlsv1_server *conn, const u8 **dh_p,
Dtlsv1_client_i.h55 u8 *dh_p; member
Dtlsv1_server_read.c709 const u8 *dh_p; in tls_process_client_key_exchange_dh() local
754 if (conn->cred == NULL || conn->cred->dh_p == NULL || in tls_process_client_key_exchange_dh()
762 tlsv1_server_get_dh_p(conn, &dh_p, &dh_p_len); in tls_process_client_key_exchange_dh()
776 conn->dh_secret_len, dh_p, dh_p_len, in tls_process_client_key_exchange_dh()
Dtlsv1_cred.c37 os_free(cred->dh_p); in tlsv1_cred_free()
1168 os_free(cred->dh_p); in tlsv1_set_dhparams_der()
1169 cred->dh_p = os_memdup(hdr.payload, hdr.length); in tlsv1_set_dhparams_der()
1170 if (cred->dh_p == NULL) in tlsv1_set_dhparams_der()
Dtlsv1_client_write.c372 if (os_memcmp(csecret, conn->dh_p, csecret_len) > 0) in tlsv1_key_x_dh()
396 conn->dh_p, conn->dh_p_len, in tlsv1_key_x_dh()
444 conn->dh_p, conn->dh_p_len, in tlsv1_key_x_dh()
Dtlsv1_client.c34 os_free(conn->dh_p); in tlsv1_client_free_dh()
37 conn->dh_p = conn->dh_g = conn->dh_ys = NULL; in tlsv1_client_free_dh()
Dtlsv1_client_read.c688 conn->dh_p = os_memdup(pos, conn->dh_p_len); in tlsv1_process_diffie_hellman()
689 if (conn->dh_p == NULL) in tlsv1_process_diffie_hellman()
693 conn->dh_p, conn->dh_p_len); in tlsv1_process_diffie_hellman()