Home
last modified time | relevance | path

Searched refs:WPA_NONCE_LEN (Results 1 – 13 of 13) sorted by relevance

/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_ft.c304 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
306 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
314 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
316 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
428 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request()
553 if (os_memcmp(snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response()
556 snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
558 sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
594 wpa_hexdump(MSG_DEBUG, "FT: SNonce", sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
595 wpa_hexdump(MSG_DEBUG, "FT: ANonce", anonce, WPA_NONCE_LEN); in wpa_ft_process_response()
[all …]
Dtdls.c57 u8 Anonce[WPA_NONCE_LEN]; /* Responder Nonce in TDLS */
58 u8 Snonce[WPA_NONCE_LEN]; /* Initiator Nonce in TDLS */
101 u8 inonce[WPA_NONCE_LEN]; /* Initiator Nonce */
102 u8 rnonce[WPA_NONCE_LEN]; /* Responder Nonce */
420 len[0] = WPA_NONCE_LEN; in wpa_tdls_generate_tpk()
421 len[1] = WPA_NONCE_LEN; in wpa_tdls_generate_tpk()
422 if (os_memcmp(peer->inonce, peer->rnonce, WPA_NONCE_LEN) < 0) { in wpa_tdls_generate_tpk()
429 wpa_hexdump(MSG_DEBUG, "TDLS: min(Nonce)", nonce[0], WPA_NONCE_LEN); in wpa_tdls_generate_tpk()
430 wpa_hexdump(MSG_DEBUG, "TDLS: max(Nonce)", nonce[1], WPA_NONCE_LEN); in wpa_tdls_generate_tpk()
718 os_memset(peer->inonce, 0, WPA_NONCE_LEN); in wpa_tdls_peer_clear()
[all …]
Dwpa_i.h26 u8 snonce[WPA_NONCE_LEN];
27 u8 anonce[WPA_NONCE_LEN]; /* ANonce from the last 1/4 msg */
Dwpa.c526 os_memcpy(reply->key_nonce, nonce, WPA_NONCE_LEN); in wpa_supplicant_send_2_of_4()
605 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4()
612 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
685 os_memcpy(sm->anonce, key->key_nonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
1453 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_3_of_4()
2081 wpa_hexdump(MSG_DEBUG, " key_nonce", key->key_nonce, WPA_NONCE_LEN); in wpa_eapol_key_dump()
/external/wpa_supplicant_8/wpa_supplicant/
Dmesh_rsn.c461 u8 context[2 * WPA_NONCE_LEN + 2 * 2 + RSN_SELECTOR_LEN + 2 * ETH_ALEN]; in mesh_rsn_derive_mtk()
470 if (os_memcmp(sta->my_nonce, sta->peer_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_derive_mtk()
477 os_memcpy(ptr, min, WPA_NONCE_LEN); in mesh_rsn_derive_mtk()
478 ptr += WPA_NONCE_LEN; in mesh_rsn_derive_mtk()
479 os_memcpy(ptr, max, WPA_NONCE_LEN); in mesh_rsn_derive_mtk()
480 ptr += WPA_NONCE_LEN; in mesh_rsn_derive_mtk()
519 if (random_get_bytes(sta->my_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_init_ampe_sta()
523 os_memset(sta->peer_nonce, 0, WPA_NONCE_LEN); in mesh_rsn_init_ampe_sta()
571 os_memcpy(ampe->local_nonce, sta->my_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
572 os_memcpy(ampe->peer_nonce, sta->peer_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
[all …]
Dctrl_iface.c812 WPA_NONCE_LEN); in wpa_supplicant_ctrl_iface_get()
/external/wpa_supplicant_8/src/ap/
Dwpa_auth_i.h56 u8 ANonce[WPA_NONCE_LEN];
57 u8 SNonce[WPA_NONCE_LEN];
58 u8 alt_SNonce[WPA_NONCE_LEN];
177 u8 Counter[WPA_NONCE_LEN];
187 u8 GNonce[WPA_NONCE_LEN];
Dwpa_auth.c366 group->Counter, WPA_NONCE_LEN) < 0) in wpa_group_init_gmk_and_counter()
369 group->Counter, WPA_NONCE_LEN); in wpa_group_init_gmk_and_counter()
922 os_memcpy(sm->SNonce, sm->alt_SNonce, WPA_NONCE_LEN); in wpa_try_alt_snonce()
1004 WPA_NONCE_LEN); in wpa_receive()
1086 os_memcmp(sm->SNonce, key->key_nonce, WPA_NONCE_LEN) != 0) in wpa_receive()
1100 os_memcpy(sm->alt_SNonce, sm->SNonce, WPA_NONCE_LEN); in wpa_receive()
1168 random_add_randomness(key->key_nonce, WPA_NONCE_LEN); in wpa_receive()
1350 os_memcpy(sm->SNonce, key->key_nonce, WPA_NONCE_LEN); in wpa_receive()
1358 u8 data[ETH_ALEN + WPA_NONCE_LEN + 8 + WPA_GTK_MAX_LEN]; in wpa_gmk_to_gtk()
1371 os_memcpy(data + ETH_ALEN, gnonce, WPA_NONCE_LEN); in wpa_gmk_to_gtk()
[all …]
Dsta_info.h86 u8 my_nonce[WPA_NONCE_LEN];
87 u8 peer_nonce[WPA_NONCE_LEN];
Dwpa_auth_ft.c830 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
832 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
840 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
842 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
2905 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
2915 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
2988 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in wpa_ft_process_auth_req()
2995 sm->SNonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
2997 sm->ANonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
3181 if (os_memcmp(snonce, sm->SNonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc()
[all …]
/external/wpa_supplicant_8/src/common/
Dwpa_common.c356 u8 data[2 * ETH_ALEN + 2 * WPA_NONCE_LEN + MAX_Z_LEN]; in wpa_pmk_to_ptk()
357 size_t data_len = 2 * ETH_ALEN + 2 * WPA_NONCE_LEN; in wpa_pmk_to_ptk()
377 if (os_memcmp(nonce1, nonce2, WPA_NONCE_LEN) < 0) { in wpa_pmk_to_ptk()
378 os_memcpy(data + 2 * ETH_ALEN, nonce1, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
379 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce2, in wpa_pmk_to_ptk()
380 WPA_NONCE_LEN); in wpa_pmk_to_ptk()
382 os_memcpy(data + 2 * ETH_ALEN, nonce2, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
383 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce1, in wpa_pmk_to_ptk()
384 WPA_NONCE_LEN); in wpa_pmk_to_ptk()
388 os_memcpy(data + 2 * ETH_ALEN + 2 * WPA_NONCE_LEN, z, z_len); in wpa_pmk_to_ptk()
[all …]
Dwpa_common.h18 #define WPA_NONCE_LEN 32 macro
190 u8 key_nonce[WPA_NONCE_LEN];
314 u8 anonce[WPA_NONCE_LEN];
315 u8 snonce[WPA_NONCE_LEN];
322 u8 anonce[WPA_NONCE_LEN];
323 u8 snonce[WPA_NONCE_LEN];
/external/wpa_supplicant_8/src/drivers/
Ddriver.h765 u8 fils_anonce[WPA_NONCE_LEN];
770 u8 fils_snonce[WPA_NONCE_LEN];