Home
last modified time | relevance | path

Searched refs:random_get_bytes (Results 1 – 16 of 16) sorted by relevance

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Drandom.h16 #define random_get_bytes(b, l) os_get_random((b), (l)) macro
23 int random_get_bytes(void *buf, size_t len);
Ddh_groups.c1206 if (random_get_bytes(wpabuf_put(*priv, dh->prime_len), dh->prime_len)) in dh_init()
/hal_espressif-latest/components/wpa_supplicant/src/ap/
Dcomeback_token.c90 if (random_get_bytes(comeback_key, COMEBACK_KEY_SIZE) < 0) { in auth_build_token_req()
Dwpa_auth.c1460 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in wpa_auth_sm_ptk_update()
/hal_espressif-latest/components/wpa_supplicant/src/wps/
Dwps_common.c252 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()
Dwps_enrollee.c43 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()
Dwps_attr_build.c416 if (random_get_bytes(iv, block_size) < 0) in wps_build_encr_settings()
Dwps_registrar.c1477 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/
Dtlsv1_server_write.c60 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()
Dtlsv1_client_write.c67 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/
Dcrypto_mbedtls-bignum.c21 return random_get_bytes(buf, len); in crypto_rng_wrapper()
Dcrypto_mbedtls-ec.c45 return random_get_bytes(buf, len); in crypto_rng_wrapper()
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/
Deap_mschapv2.c179 } 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/
Dwpa_ft.c366 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/
Ddpp.c1553 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()
Dsae.c302 random_get_bytes(stub_password, password_len) < 0) in sae_derive_pwe_ecc()