Home
last modified time | relevance | path

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

/freebsd/contrib/wpa/wpa_supplicant/
H A Dmesh_rsn.c479 u8 context[2 * WPA_NONCE_LEN + 2 * 2 + RSN_SELECTOR_LEN + 2 * ETH_ALEN]; in mesh_rsn_derive_mtk()
488 if (os_memcmp(sta->my_nonce, sta->peer_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_derive_mtk()
495 os_memcpy(ptr, min, WPA_NONCE_LEN); in mesh_rsn_derive_mtk()
496 ptr += WPA_NONCE_LEN; in mesh_rsn_derive_mtk()
497 os_memcpy(ptr, max, WPA_NONCE_LEN); in mesh_rsn_derive_mtk()
498 ptr += WPA_NONCE_LEN; in mesh_rsn_derive_mtk()
537 if (random_get_bytes(sta->my_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_init_ampe_sta()
541 os_memset(sta->peer_nonce, 0, WPA_NONCE_LEN); in mesh_rsn_init_ampe_sta()
587 os_memcpy(ampe->local_nonce, sta->my_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
588 os_memcpy(ampe->peer_nonce, sta->peer_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
[all …]
H A Dctrl_iface.c1015 WPA_NONCE_LEN); in wpa_supplicant_ctrl_iface_get()
/freebsd/contrib/wpa/src/rsn_supp/
H A Dwpa_ft.c366 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
368 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
380 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
382 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
392 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
394 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
536 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request()
643 if (os_memcmp(parse.fte_snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response()
646 parse.fte_snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
648 sm->snonce, 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 */
440 len[0] = WPA_NONCE_LEN; in wpa_tdls_generate_tpk()
441 len[1] = WPA_NONCE_LEN; in wpa_tdls_generate_tpk()
442 if (os_memcmp(peer->inonce, peer->rnonce, WPA_NONCE_LEN) < 0) { in wpa_tdls_generate_tpk()
449 wpa_hexdump(MSG_DEBUG, "TDLS: min(Nonce)", nonce[0], WPA_NONCE_LEN); in wpa_tdls_generate_tpk()
450 wpa_hexdump(MSG_DEBUG, "TDLS: max(Nonce)", nonce[1], WPA_NONCE_LEN); in wpa_tdls_generate_tpk()
750 os_memset(peer->inonce, 0, WPA_NONCE_LEN); in wpa_tdls_peer_clear()
[all …]
H A Dwpa_i.h32 u8 snonce[WPA_NONCE_LEN];
33 u8 anonce[WPA_NONCE_LEN]; /* ANonce from the last 1/4 msg */
H A Dwpa.c675 os_memcpy(reply->key_nonce, nonce, WPA_NONCE_LEN); in wpa_supplicant_send_2_of_4()
886 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4_wpa()
893 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4_wpa()
910 os_memcpy(sm->anonce, key->key_nonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4_wpa()
988 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4()
995 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
1113 os_memcpy(sm->anonce, key->key_nonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
2489 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_3_of_4_wpa()
2655 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_3_of_4()
3469 wpa_hexdump(MSG_DEBUG, " key_nonce", key->key_nonce, WPA_NONCE_LEN); in wpa_eapol_key_dump()
/freebsd/contrib/wpa/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];
202 u8 Counter[WPA_NONCE_LEN];
212 u8 GNonce[WPA_NONCE_LEN];
H A Dwpa_auth.c669 group->Counter, WPA_NONCE_LEN) < 0) in wpa_group_init_gmk_and_counter()
672 group->Counter, WPA_NONCE_LEN); in wpa_group_init_gmk_and_counter()
1367 os_memcpy(sm->SNonce, sm->alt_SNonce, WPA_NONCE_LEN);
1472 os_memcmp(sm->SNonce, key->key_nonce, WPA_NONCE_LEN) != 0) {
1484 os_memcpy(sm->alt_SNonce, sm->SNonce, WPA_NONCE_LEN);
1609 WPA_NONCE_LEN);
1691 random_add_randomness(key->key_nonce, WPA_NONCE_LEN);
1889 os_memcpy(sm->SNonce, key->key_nonce, WPA_NONCE_LEN);
1900 u8 data[ETH_ALEN + WPA_NONCE_LEN + 8 + WPA_GTK_MAX_LEN];
1913 os_memcpy(data + ETH_ALEN, gnonce, WPA_NONCE_LEN);
[all …]
H A Dsta_info.h122 u8 my_nonce[WPA_NONCE_LEN];
123 u8 peer_nonce[WPA_NONCE_LEN];
H A Dwpa_auth_ft.c852 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
854 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
865 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
867 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
876 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
878 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
3317 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in wpa_ft_process_auth_req()
3335 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
3346 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
3357 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
[all …]
H A Dieee802_11_auth.c179 query->anonce, WPA_NONCE_LEN)) { in hostapd_radius_acl_query()
736 query->anonce = os_memdup(anonce, WPA_NONCE_LEN); in hostapd_acl_req_radius_psk()
H A Dwpa_auth_glue.c1515 wpa_hexdump(MSG_DEBUG, "ANonce", anonce, WPA_NONCE_LEN); in hostapd_request_radius_psk()
/freebsd/contrib/wpa/src/common/
H A Dwpa_common.h21 #define WPA_NONCE_LEN 32 macro
232 u8 key_nonce[WPA_NONCE_LEN];
408 u8 anonce[WPA_NONCE_LEN];
409 u8 snonce[WPA_NONCE_LEN];
416 u8 anonce[WPA_NONCE_LEN];
417 u8 snonce[WPA_NONCE_LEN];
424 u8 anonce[WPA_NONCE_LEN];
425 u8 snonce[WPA_NONCE_LEN];
H A Dwpa_common.c400 u8 data[2 * ETH_ALEN + 2 * WPA_NONCE_LEN + MAX_Z_LEN]; in wpa_pmk_to_ptk()
401 size_t data_len = 2 * ETH_ALEN + 2 * WPA_NONCE_LEN; in wpa_pmk_to_ptk()
430 if (os_memcmp(nonce1, nonce2, WPA_NONCE_LEN) < 0) { in wpa_pmk_to_ptk()
431 os_memcpy(data + 2 * ETH_ALEN, nonce1, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
432 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce2, in wpa_pmk_to_ptk()
433 WPA_NONCE_LEN); in wpa_pmk_to_ptk()
435 os_memcpy(data + 2 * ETH_ALEN, nonce2, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
436 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce1, in wpa_pmk_to_ptk()
437 WPA_NONCE_LEN); in wpa_pmk_to_ptk()
441 os_memcpy(data + 2 * ETH_ALEN + 2 * WPA_NONCE_LEN, z, z_len); in wpa_pmk_to_ptk()
[all …]
/freebsd/contrib/wpa/src/drivers/
H A Ddriver.h919 u8 fils_anonce[WPA_NONCE_LEN];
924 u8 fils_snonce[WPA_NONCE_LEN];