Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_ft.c265 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
267 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
359 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request()
432 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response()
435 ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
437 sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
473 wpa_hexdump(MSG_DEBUG, "FT: SNonce", sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
474 wpa_hexdump(MSG_DEBUG, "FT: ANonce", ftie->anonce, WPA_NONCE_LEN); in wpa_ft_process_response()
475 os_memcpy(sm->anonce, ftie->anonce, WPA_NONCE_LEN); in wpa_ft_process_response()
715 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc_resp()
[all …]
Dtdls.c56 u8 Anonce[WPA_NONCE_LEN]; /* Responder Nonce in TDLS */
57 u8 Snonce[WPA_NONCE_LEN]; /* Initiator Nonce in TDLS */
100 u8 inonce[WPA_NONCE_LEN]; /* Initiator Nonce */
101 u8 rnonce[WPA_NONCE_LEN]; /* Responder Nonce */
419 len[0] = WPA_NONCE_LEN; in wpa_tdls_generate_tpk()
420 len[1] = WPA_NONCE_LEN; in wpa_tdls_generate_tpk()
421 if (os_memcmp(peer->inonce, peer->rnonce, WPA_NONCE_LEN) < 0) { in wpa_tdls_generate_tpk()
428 wpa_hexdump(MSG_DEBUG, "TDLS: min(Nonce)", nonce[0], WPA_NONCE_LEN); in wpa_tdls_generate_tpk()
429 wpa_hexdump(MSG_DEBUG, "TDLS: max(Nonce)", nonce[1], WPA_NONCE_LEN); in wpa_tdls_generate_tpk()
717 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.c506 os_memcpy(reply->key_nonce, nonce, WPA_NONCE_LEN); in wpa_supplicant_send_2_of_4()
575 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4()
582 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
628 os_memcpy(sm->anonce, key->key_nonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
1378 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_3_of_4()
1903 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.c450 u8 context[2 * WPA_NONCE_LEN + 2 * 2 + RSN_SELECTOR_LEN + 2 * ETH_ALEN]; in mesh_rsn_derive_mtk()
459 if (os_memcmp(sta->my_nonce, sta->peer_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_derive_mtk()
466 os_memcpy(ptr, min, WPA_NONCE_LEN); in mesh_rsn_derive_mtk()
467 ptr += WPA_NONCE_LEN; in mesh_rsn_derive_mtk()
468 os_memcpy(ptr, max, WPA_NONCE_LEN); in mesh_rsn_derive_mtk()
469 ptr += WPA_NONCE_LEN; in mesh_rsn_derive_mtk()
508 if (random_get_bytes(sta->my_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_init_ampe_sta()
512 os_memset(sta->peer_nonce, 0, WPA_NONCE_LEN); in mesh_rsn_init_ampe_sta()
560 os_memcpy(ampe->local_nonce, sta->my_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
561 os_memcpy(ampe->peer_nonce, sta->peer_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
[all …]
Dctrl_iface.c756 WPA_NONCE_LEN); in wpa_supplicant_ctrl_iface_get()
/external/syslinux/gpxe/src/include/gpxe/
Dwpa.h203 #define WPA_NONCE_LEN 32 macro
343 u8 Anonce[WPA_NONCE_LEN];
346 u8 Snonce[WPA_NONCE_LEN];
486 u8 nonce[WPA_NONCE_LEN];
/external/wpa_supplicant_8/src/ap/
Dwpa_auth_i.h55 u8 ANonce[WPA_NONCE_LEN];
56 u8 SNonce[WPA_NONCE_LEN];
57 u8 alt_SNonce[WPA_NONCE_LEN];
166 u8 Counter[WPA_NONCE_LEN];
176 u8 GNonce[WPA_NONCE_LEN];
Dwpa_auth.c355 group->Counter, WPA_NONCE_LEN) < 0) in wpa_group_init_gmk_and_counter()
358 group->Counter, WPA_NONCE_LEN); in wpa_group_init_gmk_and_counter()
889 os_memcpy(sm->SNonce, sm->alt_SNonce, WPA_NONCE_LEN); in wpa_try_alt_snonce()
971 WPA_NONCE_LEN); in wpa_receive()
1061 os_memcmp(sm->SNonce, key->key_nonce, WPA_NONCE_LEN) != 0) in wpa_receive()
1075 os_memcpy(sm->alt_SNonce, sm->SNonce, WPA_NONCE_LEN); in wpa_receive()
1143 random_add_randomness(key->key_nonce, WPA_NONCE_LEN); in wpa_receive()
1312 os_memcpy(sm->SNonce, key->key_nonce, WPA_NONCE_LEN); in wpa_receive()
1320 u8 data[ETH_ALEN + WPA_NONCE_LEN + 8 + 16]; in wpa_gmk_to_gtk()
1332 os_memcpy(data + ETH_ALEN, gnonce, WPA_NONCE_LEN); in wpa_gmk_to_gtk()
[all …]
Dsta_info.h88 u8 my_nonce[WPA_NONCE_LEN];
89 u8 peer_nonce[WPA_NONCE_LEN];
Dwpa_auth_ft.c513 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
515 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
2097 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
2145 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in wpa_ft_process_auth_req()
2152 sm->SNonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
2154 sm->ANonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
2297 if (os_memcmp(ftie->snonce, sm->SNonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc()
2300 ftie->snonce, WPA_NONCE_LEN); in wpa_ft_validate_reassoc()
2302 sm->SNonce, WPA_NONCE_LEN); in wpa_ft_validate_reassoc()
2306 if (os_memcmp(ftie->anonce, sm->ANonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc()
[all …]
/external/syslinux/gpxe/src/net/80211/
Dwpa.c319 u8 nonce1[WPA_NONCE_LEN]; in wpa_derive_ptk()
320 u8 nonce2[WPA_NONCE_LEN]; in wpa_derive_ptk()
334 if ( memcmp ( ctx->Anonce, ctx->Snonce, WPA_NONCE_LEN ) < 0 ) { in wpa_derive_ptk()
335 memcpy ( ptk_data.nonce1, ctx->Anonce, WPA_NONCE_LEN ); in wpa_derive_ptk()
336 memcpy ( ptk_data.nonce2, ctx->Snonce, WPA_NONCE_LEN ); in wpa_derive_ptk()
338 memcpy ( ptk_data.nonce1, ctx->Snonce, WPA_NONCE_LEN ); in wpa_derive_ptk()
339 memcpy ( ptk_data.nonce2, ctx->Anonce, WPA_NONCE_LEN ); in wpa_derive_ptk()
345 DBGC2_HD ( ctx, ptk_data.nonce1, WPA_NONCE_LEN ); in wpa_derive_ptk()
346 DBGC2_HD ( ctx, ptk_data.nonce2, WPA_NONCE_LEN ); in wpa_derive_ptk()
656 if ( memcmp ( ctx->Anonce, pkt->nonce, WPA_NONCE_LEN ) != 0 ) { in wpa_handle_3_of_4()
/external/wpa_supplicant_8/src/common/
Dwpa_common.c246 u8 data[2 * ETH_ALEN + 2 * WPA_NONCE_LEN]; in wpa_pmk_to_ptk()
263 if (os_memcmp(nonce1, nonce2, WPA_NONCE_LEN) < 0) { in wpa_pmk_to_ptk()
264 os_memcpy(data + 2 * ETH_ALEN, nonce1, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
265 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce2, in wpa_pmk_to_ptk()
266 WPA_NONCE_LEN); in wpa_pmk_to_ptk()
268 os_memcpy(data + 2 * ETH_ALEN, nonce2, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
269 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce1, in wpa_pmk_to_ptk()
270 WPA_NONCE_LEN); in wpa_pmk_to_ptk()
326 wpa_hexdump(MSG_DEBUG, "WPA: Nonce1", nonce1, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
327 wpa_hexdump(MSG_DEBUG, "WPA: Nonce2", nonce2, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
[all …]
Dwpa_common.h18 #define WPA_NONCE_LEN 32 macro
189 u8 key_nonce[WPA_NONCE_LEN];
309 u8 anonce[WPA_NONCE_LEN];
310 u8 snonce[WPA_NONCE_LEN];
/external/wpa_supplicant_8/src/drivers/
Ddriver.h736 u8 fils_anonce[WPA_NONCE_LEN];
741 u8 fils_snonce[WPA_NONCE_LEN];