Searched refs:random_get_bytes (Results 1 – 16 of 16) sorted by relevance
/hal_espressif-latest/components/wpa_supplicant/src/crypto/ |
D | random.h | 16 #define random_get_bytes(b, l) os_get_random((b), (l)) macro 23 int random_get_bytes(void *buf, size_t len);
|
D | dh_groups.c | 1206 if (random_get_bytes(wpabuf_put(*priv, dh->prime_len), dh->prime_len)) in dh_init()
|
/hal_espressif-latest/components/wpa_supplicant/src/ap/ |
D | comeback_token.c | 90 if (random_get_bytes(comeback_key, COMEBACK_KEY_SIZE) < 0) { in auth_build_token_req()
|
D | wpa_auth.c | 1460 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in wpa_auth_sm_ptk_update()
|
/hal_espressif-latest/components/wpa_supplicant/src/wps/ |
D | wps_common.c | 252 if (random_get_bytes((unsigned char *) &val, sizeof(val)) < 0) in wps_generate_pin() 699 if (random_get_bytes(wpabuf_put(pw, WPS_OOB_DEVICE_PASSWORD_LEN), in wps_nfc_token_gen() 701 random_get_bytes((u8 *) &val, sizeof(val))) { in wps_nfc_token_gen()
|
D | wps_enrollee.c | 43 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_e_hash() 112 if (random_get_bytes(wps->nonce_e, WPS_NONCE_LEN) < 0) in wps_build_m1() 312 random_get_bytes(psk, sizeof(psk)) < 0) { in wps_build_cred_network_key()
|
D | wps_attr_build.c | 416 if (random_get_bytes(iv, block_size) < 0) in wps_build_encr_settings()
|
D | wps_registrar.c | 1477 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_r_hash() 1745 random_get_bytes(r, sizeof(r)) < 0) { in wps_build_cred() 1791 random_get_bytes(wps->new_psk, wps->new_psk_len) < 0) { in wps_build_cred() 1906 if (random_get_bytes(wps->nonce_r, WPS_NONCE_LEN) < 0) in wps_build_m2()
|
/hal_espressif-latest/components/wpa_supplicant/src/tls/ |
D | tlsv1_server_write.c | 60 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) { in tls_write_server_hello() 69 if (random_get_bytes(conn->session_id, conn->session_id_len)) { in tls_write_server_hello() 416 if (random_get_bytes(conn->dh_secret, conn->dh_secret_len)) { in tls_write_server_key_exchange()
|
D | tlsv1_client_write.c | 67 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) { in tls_send_client_hello() 361 if (random_get_bytes(csecret, csecret_len)) { in tlsv1_key_x_dh()
|
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/ |
D | crypto_mbedtls-bignum.c | 21 return random_get_bytes(buf, len); in crypto_rng_wrapper()
|
D | crypto_mbedtls-ec.c | 45 return random_get_bytes(buf, len); in crypto_rng_wrapper()
|
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/ |
D | eap_mschapv2.c | 179 } else if (random_get_bytes(peer_challenge, MSCHAPV2_CHAL_LEN)) { in eap_mschapv2_challenge_reply() 539 if (random_get_bytes(cp->peer_challenge, MSCHAPV2_CHAL_LEN)) in eap_mschapv2_change_password()
|
/hal_espressif-latest/components/wpa_supplicant/src/rsn_supp/ |
D | wpa_ft.c | 366 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request() 883 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) {
|
/hal_espressif-latest/components/wpa_supplicant/src/common/ |
D | dpp.c | 1553 if (random_get_bytes(auth->i_nonce, nonce_len)) { in dpp_auth_init() 1561 if (random_get_bytes(auth->i_nonce, nonce_len)) { in dpp_auth_init() 1666 if (random_get_bytes(auth->e_nonce, nonce_len)) { in dpp_build_conf_req_attr() 2169 if (random_get_bytes(auth->r_nonce, nonce_len)) { in dpp_auth_build_resp_ok() 2177 if (random_get_bytes(auth->r_nonce, nonce_len)) { in dpp_auth_build_resp_ok()
|
D | sae.c | 302 random_get_bytes(stub_password, password_len) < 0) in sae_derive_pwe_ecc()
|