/external/wpa_supplicant_8/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 | random.c | 154 int random_get_bytes(void *buf, size_t len) in random_get_bytes() function 382 if (random_get_bytes(buf, RANDOM_ENTROPY_SIZE) < 0) in random_write_entropy()
|
D | dh_groups.c | 1206 if (random_get_bytes(wpabuf_put(*priv, dh->prime_len), dh->prime_len)) in dh_init()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_eke_common.c | 173 if (random_get_bytes(ret_priv, dh->prime_len)) in eap_eke_dh_init() 384 if (random_get_bytes(iv, AES_BLOCK_SIZE)) in eap_eke_dhcomp() 634 if (random_get_bytes(pos, block_size)) in eap_eke_prot() 644 if (random_get_bytes(pos, pad)) in eap_eke_prot()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_md5.c | 50 if (random_get_bytes(data->challenge, CHALLENGE_LEN)) { in eap_md5_buildReq()
|
D | ikev2.c | 1098 if (random_get_bytes(data->i_nonce, data->i_nonce_len)) in ikev2_build_sa_init() 1146 if (random_get_bytes(data->shared_secret, 16)) in ikev2_build_sa_auth()
|
D | eap_server_psk.c | 62 if (random_get_bytes(data->rand_s, EAP_PSK_RAND_LEN)) { in eap_psk_build_1()
|
D | eap_server_sake.c | 153 if (random_get_bytes(data->rand_s, EAP_SAKE_RAND_LEN)) { in eap_sake_build_challenge()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_common.c | 246 if (random_get_bytes((unsigned char *) &val, sizeof(val)) < 0) in wps_generate_pin() 682 if (random_get_bytes(wpabuf_put(pw, WPS_OOB_DEVICE_PASSWORD_LEN), in wps_nfc_token_gen() 684 random_get_bytes((u8 *) &val, sizeof(val))) { in wps_nfc_token_gen()
|
D | wps_enrollee.c | 41 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_e_hash() 109 if (random_get_bytes(wps->nonce_e, WPS_NONCE_LEN) < 0) in wps_build_m1() 305 random_get_bytes(psk, sizeof(psk)) < 0) { in wps_build_cred_network_key()
|
D | wps_attr_build.c | 391 if (random_get_bytes(iv, block_size) < 0) in wps_build_encr_settings()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | mesh_rsn.c | 177 if (random_get_bytes(rsn->mgtk, rsn->mgtk_len) < 0) in __mesh_rsn_auth_init() 184 if (random_get_bytes(rsn->igtk, rsn->igtk_len) < 0) in __mesh_rsn_auth_init() 500 if (random_get_bytes(sta->my_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_init_ampe_sta()
|
/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_server_write.c | 57 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) { in tls_write_server_hello() 66 if (random_get_bytes(conn->session_id, conn->session_id_len)) { in tls_write_server_hello() 413 if (random_get_bytes(conn->dh_secret, conn->dh_secret_len)) { in tls_write_server_key_exchange()
|
D | tlsv1_client_write.c | 76 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) { in tls_send_client_hello() 360 if (random_get_bytes(csecret, csecret_len)) { in tlsv1_key_x_dh()
|
/external/wpa_supplicant_8/src/common/ |
D | sae.c | 127 if (iter++ > 100 || random_get_bytes(val, order_len) < 0) in sae_get_rand() 180 if (random_get_bytes(tmp, prime_len) < 0) in get_rand_1_to_p_1() 395 if (random_get_bytes(tmp, prime_len) < 0) in get_random_qr_qnr() 438 if (random_get_bytes(dummy_password, dummy_password_len) < 0) in sae_derive_pwe_ecc()
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | peerkey.c | 247 if (random_get_bytes(peerkey->pnonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_smk_m2() 361 if (random_get_bytes(peerkey->inonce, WPA_NONCE_LEN)) { in wpa_supplicant_send_stk_1_of_4() 682 if (random_get_bytes(peerkey->pnonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_stk_1_of_4() 1073 if (random_get_bytes(peerkey->inonce, WPA_NONCE_LEN)) { in wpa_sm_stkstart()
|
D | wpa_ft.c | 353 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request() 838 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_start_over_ds()
|
/external/wpa_supplicant_8/src/ap/ |
D | wpa_auth.c | 258 if (random_get_bytes(wpa_auth->group->GMK, WPA_GMK_LEN)) { in wpa_rekey_gmk() 336 if (random_get_bytes(group->GMK, WPA_GMK_LEN) < 0) in wpa_group_init_gmk_and_counter() 348 if (random_get_bytes(rkey, sizeof(rkey)) < 0) in wpa_group_init_gmk_and_counter() 1372 if (random_get_bytes(pos, 16) < 0) in wpa_gmk_to_gtk() 1899 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in SM_STATE() 1917 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in wpa_auth_sm_ptk_update() 2375 if (random_get_bytes(dummy_gtk, gtk_len) < 0) { in fils_encrypt_assoc() 2671 if (random_get_bytes(igtk.igtk, len) < 0) in ieee80211w_kde_add() 2744 if (random_get_bytes(dummy_gtk, gtk_len) < 0) in SM_STATE() 3098 if (random_get_bytes(dummy_gtk, gsm->GTK_len) < 0) in SM_STATE()
|
D | peerkey_auth.c | 279 if (random_get_bytes(smk, PMK_LEN)) { in wpa_smk_m3()
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_mschapv2.c | 197 } else if (random_get_bytes(peer_challenge, MSCHAPV2_CHAL_LEN)) { in eap_mschapv2_challenge_reply() 583 if (random_get_bytes(cp->peer_challenge, MSCHAPV2_CHAL_LEN)) in eap_mschapv2_change_password()
|
D | eap_leap.c | 165 if (random_get_bytes(pos, LEAP_CHALLENGE_LEN)) { in eap_leap_process_success()
|
D | eap_sim.c | 90 if (random_get_bytes(data->nonce_mt, EAP_SIM_NONCE_MT_LEN)) { in eap_sim_init() 1142 if (random_get_bytes(data->nonce_mt, EAP_SIM_NONCE_MT_LEN)) { in eap_sim_init_for_reauth()
|
D | eap_sake.c | 220 if (random_get_bytes(data->rand_p, EAP_SAKE_RAND_LEN)) { in eap_sake_process_challenge()
|
D | eap_psk.c | 130 if (random_get_bytes(data->rand_p, EAP_PSK_RAND_LEN)) { in eap_psk_process_1()
|
/external/wpa_supplicant_8/hostapd/ |
D | hlr_auc_gw.c | 619 if (random_get_bytes(_rand, 16) < 0) in sim_req_auth() 750 if (random_get_bytes(_rand, EAP_AKA_RAND_LEN) < 0) in aka_req_auth()
|