Home
last modified time | relevance | path

Searched refs:WPA_NONCE_LEN (Results 1 - 25 of 26) sorted by relevance

12

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/
H A Dwpa_ft.c313 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
315 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
323 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
325 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
437 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request()
562 if (os_memcmp(snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response()
565 snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
567 sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
603 wpa_hexdump(MSG_DEBUG, "FT: SNonce", sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
604 wpa_hexdump(MSG_DEBUG, "FT: ANonce", anonce, WPA_NONCE_LEN); in wpa_ft_process_response()
[all...]
H A 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...]
H A Dwpa_i.h26 u8 snonce[WPA_NONCE_LEN];
27 u8 anonce[WPA_NONCE_LEN]; /* ANonce from the last 1/4 msg */
H A Dwpa.c552 os_memcpy(reply->key_nonce, nonce, WPA_NONCE_LEN); in wpa_supplicant_send_2_of_4()
631 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4()
638 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
711 os_memcpy(sm->anonce, key->key_nonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
1479 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_3_of_4()
2107 wpa_hexdump(MSG_DEBUG, " key_nonce", key->key_nonce, WPA_NONCE_LEN); in wpa_eapol_key_dump()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
H A Dwpa_auth_i.h56 u8 ANonce[WPA_NONCE_LEN];
57 u8 SNonce[WPA_NONCE_LEN];
58 u8 alt_SNonce[WPA_NONCE_LEN];
184 u8 Counter[WPA_NONCE_LEN];
194 u8 GNonce[WPA_NONCE_LEN];
H A Dwpa_auth.c443 group->Counter, WPA_NONCE_LEN) < 0) in wpa_group_init_gmk_and_counter()
446 group->Counter, WPA_NONCE_LEN); in wpa_group_init_gmk_and_counter()
1018 os_memcpy(sm->SNonce, sm->alt_SNonce, WPA_NONCE_LEN); in wpa_try_alt_snonce()
1112 WPA_NONCE_LEN); in wpa_receive()
1190 os_memcmp(sm->SNonce, key->key_nonce, WPA_NONCE_LEN) != 0) in wpa_receive()
1202 os_memcpy(sm->alt_SNonce, sm->SNonce, WPA_NONCE_LEN); in wpa_receive()
1269 random_add_randomness(key->key_nonce, WPA_NONCE_LEN); in wpa_receive()
1449 os_memcpy(sm->SNonce, key->key_nonce, WPA_NONCE_LEN); in wpa_receive()
1457 u8 data[ETH_ALEN + WPA_NONCE_LEN + 8 + WPA_GTK_MAX_LEN]; in wpa_gmk_to_gtk()
1470 os_memcpy(data + ETH_ALEN, gnonce, WPA_NONCE_LEN); in wpa_gmk_to_gtk()
[all...]
H A Dsta_info.h128 u8 my_nonce[WPA_NONCE_LEN];
129 u8 peer_nonce[WPA_NONCE_LEN];
H A Dwpa_auth_ft.c832 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
834 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
842 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
844 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
3105 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
3115 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
3188 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in wpa_ft_process_auth_req()
3195 sm->SNonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
3197 sm->ANonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
3394 if (os_memcmp(snonce, sm->SNonce, WPA_NONCE_LEN) ! in wpa_ft_validate_reassoc()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
H A Dwpa_auth_i.h56 u8 ANonce[WPA_NONCE_LEN];
57 u8 SNonce[WPA_NONCE_LEN];
58 u8 alt_SNonce[WPA_NONCE_LEN];
179 u8 Counter[WPA_NONCE_LEN];
189 u8 GNonce[WPA_NONCE_LEN];
H A Dwpa_auth.c385 group->Counter, WPA_NONCE_LEN) < 0) in wpa_group_init_gmk_and_counter()
388 group->Counter, WPA_NONCE_LEN); in wpa_group_init_gmk_and_counter()
941 os_memcpy(sm->SNonce, sm->alt_SNonce, WPA_NONCE_LEN); in wpa_try_alt_snonce()
1024 WPA_NONCE_LEN); in wpa_receive()
1106 os_memcmp(sm->SNonce, key->key_nonce, WPA_NONCE_LEN) != 0) in wpa_receive()
1120 os_memcpy(sm->alt_SNonce, sm->SNonce, WPA_NONCE_LEN); in wpa_receive()
1188 random_add_randomness(key->key_nonce, WPA_NONCE_LEN); in wpa_receive()
1370 os_memcpy(sm->SNonce, key->key_nonce, WPA_NONCE_LEN); in wpa_receive()
1378 u8 data[ETH_ALEN + WPA_NONCE_LEN + 8 + WPA_GTK_MAX_LEN]; in wpa_gmk_to_gtk()
1391 os_memcpy(data + ETH_ALEN, gnonce, WPA_NONCE_LEN); in wpa_gmk_to_gtk()
[all...]
H A Dsta_info.h87 u8 my_nonce[WPA_NONCE_LEN];
88 u8 peer_nonce[WPA_NONCE_LEN];
H A Dwpa_auth_ft.c831 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
833 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
841 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
843 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
2914 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
2924 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
2999 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in wpa_ft_process_auth_req()
3006 sm->SNonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
3008 sm->ANonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
3193 if (os_memcmp(snonce, sm->SNonce, WPA_NONCE_LEN) ! in wpa_ft_validate_reassoc()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/
H A Dwpa_ft.c342 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
344 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
353 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
355 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
497 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) {
622 if (os_memcmp(snonce, sm->snonce, WPA_NONCE_LEN) != 0) {
625 snonce, WPA_NONCE_LEN);
627 sm->snonce, WPA_NONCE_LEN);
669 wpa_hexdump(MSG_DEBUG, "FT: SNonce", sm->snonce, WPA_NONCE_LEN);
670 wpa_hexdump(MSG_DEBUG, "FT: ANonce", anonce, WPA_NONCE_LEN);
[all...]
H A 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 */
432 len[0] = WPA_NONCE_LEN;
433 len[1] = WPA_NONCE_LEN;
434 if (os_memcmp(peer->inonce, peer->rnonce, WPA_NONCE_LEN) < 0) {
441 wpa_hexdump(MSG_DEBUG, "TDLS: min(Nonce)", nonce[0], WPA_NONCE_LEN);
442 wpa_hexdump(MSG_DEBUG, "TDLS: max(Nonce)", nonce[1], WPA_NONCE_LEN);
734 os_memset(peer->inonce, 0, WPA_NONCE_LEN);
[all...]
H A Dwpa_i.h31 u8 snonce[WPA_NONCE_LEN];
32 u8 anonce[WPA_NONCE_LEN]; /* ANonce from the last 1/4 msg */
H A Dwpa.c622 os_memcpy(reply->key_nonce, nonce, WPA_NONCE_LEN); in wpa_supplicant_send_2_of_4()
848 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4()
855 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
991 os_memcpy(sm->anonce, key->key_nonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
2421 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) {
2672 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) {
3465 wpa_hexdump(MSG_DEBUG, " key_nonce", key->key_nonce, WPA_NONCE_LEN);
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
H A 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...]
H A Dctrl_iface.c815 WPA_NONCE_LEN); in wpa_supplicant_ctrl_iface_get()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
H A Dmesh_rsn.c473 u8 context[2 * WPA_NONCE_LEN + 2 * 2 + RSN_SELECTOR_LEN + 2 * ETH_ALEN]; in mesh_rsn_derive_mtk()
482 if (os_memcmp(sta->my_nonce, sta->peer_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_derive_mtk()
489 os_memcpy(ptr, min, WPA_NONCE_LEN); in mesh_rsn_derive_mtk()
490 ptr += WPA_NONCE_LEN; in mesh_rsn_derive_mtk()
491 os_memcpy(ptr, max, WPA_NONCE_LEN); in mesh_rsn_derive_mtk()
492 ptr += WPA_NONCE_LEN; in mesh_rsn_derive_mtk()
531 if (random_get_bytes(sta->my_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_init_ampe_sta()
535 os_memset(sta->peer_nonce, 0, WPA_NONCE_LEN); in mesh_rsn_init_ampe_sta()
581 os_memcpy(ampe->local_nonce, sta->my_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
582 os_memcpy(ampe->peer_nonce, sta->peer_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
H A 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, in wpa_pmk_to_ptk()
[all...]
H A 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];
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
H A Dwpa_common.c391 u8 data[2 * ETH_ALEN + 2 * WPA_NONCE_LEN + MAX_Z_LEN]; in wpa_pmk_to_ptk()
392 size_t data_len = 2 * ETH_ALEN + 2 * WPA_NONCE_LEN; in wpa_pmk_to_ptk()
421 if (os_memcmp(nonce1, nonce2, WPA_NONCE_LEN) < 0) { in wpa_pmk_to_ptk()
422 os_memcpy(data + 2 * ETH_ALEN, nonce1, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
423 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce2, in wpa_pmk_to_ptk()
424 WPA_NONCE_LEN); in wpa_pmk_to_ptk()
426 os_memcpy(data + 2 * ETH_ALEN, nonce2, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
427 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce1, in wpa_pmk_to_ptk()
428 WPA_NONCE_LEN); in wpa_pmk_to_ptk()
432 os_memcpy(data + 2 * ETH_ALEN + 2 * WPA_NONCE_LEN, in wpa_pmk_to_ptk()
[all...]
H A Dwpa_common.h21 #define WPA_NONCE_LEN 32 macro
224 u8 key_nonce[WPA_NONCE_LEN];
397 u8 anonce[WPA_NONCE_LEN];
398 u8 snonce[WPA_NONCE_LEN];
405 u8 anonce[WPA_NONCE_LEN];
406 u8 snonce[WPA_NONCE_LEN];
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
H A Ddriver.h793 u8 fils_anonce[WPA_NONCE_LEN];
798 u8 fils_snonce[WPA_NONCE_LEN];
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
H A Ddriver.h861 u8 fils_anonce[WPA_NONCE_LEN];
866 u8 fils_snonce[WPA_NONCE_LEN];

Completed in 74 milliseconds

12