Home
last modified time | relevance | path

Searched refs:dh_secret (Results 1 – 4 of 4) sorted by relevance

/hal_espressif-2.7.6/components/wpa_supplicant/src/tls/
Dtlsv1_server_write.c279 os_free(conn->dh_secret); in tls_write_server_key_exchange()
281 conn->dh_secret = os_malloc(conn->dh_secret_len); in tls_write_server_key_exchange()
282 if (conn->dh_secret == NULL) { in tls_write_server_key_exchange()
289 if (random_get_bytes(conn->dh_secret, conn->dh_secret_len)) { in tls_write_server_key_exchange()
294 os_free(conn->dh_secret); in tls_write_server_key_exchange()
295 conn->dh_secret = NULL; in tls_write_server_key_exchange()
299 if (os_memcmp(conn->dh_secret, conn->cred->dh_p, conn->dh_secret_len) > in tls_write_server_key_exchange()
301 conn->dh_secret[0] = 0; /* make sure secret < p */ in tls_write_server_key_exchange()
303 pos = conn->dh_secret; in tls_write_server_key_exchange()
304 while (pos + 1 < conn->dh_secret + conn->dh_secret_len && *pos == 0) in tls_write_server_key_exchange()
[all …]
Dtlsv1_server_i.h56 u8 *dh_secret; member
Dtlsv1_server_read.c637 conn->dh_secret == NULL) { in tls_process_client_key_exchange_dh_anon()
655 if (crypto_mod_exp(dh_yc, dh_yc_len, conn->dh_secret, in tls_process_client_key_exchange_dh_anon()
668 os_memset(conn->dh_secret, 0, conn->dh_secret_len); in tls_process_client_key_exchange_dh_anon()
669 os_free(conn->dh_secret); in tls_process_client_key_exchange_dh_anon()
670 conn->dh_secret = NULL; in tls_process_client_key_exchange_dh_anon()
Dtlsv1_server.c392 os_free(conn->dh_secret); in tlsv1_server_clear_data()
393 conn->dh_secret = NULL; in tlsv1_server_clear_data()