Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/ap/
Dpeerkey_auth.c162 2 + RSN_SELECTOR_LEN + WPA_NONCE_LEN + in wpa_send_smk_m4()
163 2 + RSN_SELECTOR_LEN + PMK_LEN + WPA_NONCE_LEN + in wpa_send_smk_m4()
174 pos = wpa_add_kde(pos, RSN_KEY_DATA_NONCE, kde->nonce, WPA_NONCE_LEN, in wpa_send_smk_m4()
179 key->key_nonce, WPA_NONCE_LEN); in wpa_send_smk_m4()
216 2 + RSN_SELECTOR_LEN + WPA_NONCE_LEN + in wpa_send_smk_m5()
217 2 + RSN_SELECTOR_LEN + PMK_LEN + WPA_NONCE_LEN + in wpa_send_smk_m5()
232 WPA_NONCE_LEN, NULL, 0); in wpa_send_smk_m5()
236 kde->nonce, WPA_NONCE_LEN); in wpa_send_smk_m5()
261 u8 smk[32], buf[ETH_ALEN + 8 + 2 * WPA_NONCE_LEN], *pos; in wpa_smk_m3()
270 kde.nonce == NULL || kde.nonce_len < WPA_NONCE_LEN) { in wpa_smk_m3()
[all …]
Dwpa_auth_i.h59 u8 ANonce[WPA_NONCE_LEN];
60 u8 SNonce[WPA_NONCE_LEN];
61 u8 alt_SNonce[WPA_NONCE_LEN];
155 u8 Counter[WPA_NONCE_LEN];
165 u8 GNonce[WPA_NONCE_LEN];
Dwpa_auth.c347 group->Counter, WPA_NONCE_LEN) < 0) in wpa_group_init_gmk_and_counter()
350 group->Counter, WPA_NONCE_LEN); in wpa_group_init_gmk_and_counter()
866 os_memcpy(sm->SNonce, sm->alt_SNonce, WPA_NONCE_LEN); in wpa_try_alt_snonce()
946 WPA_NONCE_LEN); in wpa_receive()
1034 os_memcmp(sm->SNonce, key->key_nonce, WPA_NONCE_LEN) != 0) in wpa_receive()
1048 os_memcpy(sm->alt_SNonce, sm->SNonce, WPA_NONCE_LEN); in wpa_receive()
1107 random_add_randomness(key->key_nonce, WPA_NONCE_LEN); in wpa_receive()
1356 os_memcpy(sm->SNonce, key->key_nonce, WPA_NONCE_LEN); in wpa_receive()
1364 u8 data[ETH_ALEN + WPA_NONCE_LEN + 8 + 16]; in wpa_gmk_to_gtk()
1376 os_memcpy(data + ETH_ALEN, gnonce, WPA_NONCE_LEN); in wpa_gmk_to_gtk()
[all …]
Dwpa_auth_ft.c117 os_memcpy(hdr->anonce, anonce, WPA_NONCE_LEN); in wpa_write_ftie()
119 os_memcpy(hdr->snonce, snonce, WPA_NONCE_LEN); in wpa_write_ftie()
842 os_memcpy(sm->SNonce, ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
882 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in wpa_ft_process_auth_req()
889 sm->SNonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
891 sm->ANonce, WPA_NONCE_LEN); in wpa_ft_process_auth_req()
1038 if (os_memcmp(ftie->snonce, sm->SNonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc()
1041 ftie->snonce, WPA_NONCE_LEN); in wpa_ft_validate_reassoc()
1043 sm->SNonce, WPA_NONCE_LEN); in wpa_ft_validate_reassoc()
1047 if (os_memcmp(ftie->anonce, sm->ANonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc()
[all …]
/external/wpa_supplicant_8/src/rsn_supp/
Dpeerkey.c139 2 + RSN_SELECTOR_LEN + WPA_NONCE_LEN; in wpa_supplicant_send_smk_m3()
156 os_memcpy(reply->key_nonce, peerkey->pnonce, WPA_NONCE_LEN); in wpa_supplicant_send_smk_m3()
168 wpa_add_kde(pos, RSN_KEY_DATA_NONCE, peerkey->inonce, WPA_NONCE_LEN); in wpa_supplicant_send_smk_m3()
243 os_memcpy(peerkey->inonce, key->key_nonce, WPA_NONCE_LEN); in wpa_supplicant_process_smk_m2()
249 if (random_get_bytes(peerkey->pnonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_smk_m2()
302 const size_t len[5] = { 8, WPA_NONCE_LEN, ETH_ALEN, WPA_NONCE_LEN, in rsn_smkid()
362 if (random_get_bytes(peerkey->inonce, WPA_NONCE_LEN)) { in wpa_supplicant_send_stk_1_of_4()
369 peerkey->inonce, WPA_NONCE_LEN); in wpa_supplicant_send_stk_1_of_4()
370 os_memcpy(msg->key_nonce, peerkey->inonce, WPA_NONCE_LEN); in wpa_supplicant_send_stk_1_of_4()
425 os_memcpy(msg->key_nonce, peerkey->inonce, WPA_NONCE_LEN); in wpa_supplicant_send_stk_3_of_4()
[all …]
Dwpa_ft.c258 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
260 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies()
352 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request()
425 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response()
428 ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
430 sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
466 wpa_hexdump(MSG_DEBUG, "FT: SNonce", sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response()
467 wpa_hexdump(MSG_DEBUG, "FT: ANonce", ftie->anonce, WPA_NONCE_LEN); in wpa_ft_process_response()
468 os_memcpy(sm->anonce, ftie->anonce, WPA_NONCE_LEN); in wpa_ft_process_response()
703 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 */
401 len[0] = WPA_NONCE_LEN; in wpa_tdls_generate_tpk()
402 len[1] = WPA_NONCE_LEN; in wpa_tdls_generate_tpk()
403 if (os_memcmp(peer->inonce, peer->rnonce, WPA_NONCE_LEN) < 0) { in wpa_tdls_generate_tpk()
410 wpa_hexdump(MSG_DEBUG, "TDLS: min(Nonce)", nonce[0], WPA_NONCE_LEN); in wpa_tdls_generate_tpk()
411 wpa_hexdump(MSG_DEBUG, "TDLS: max(Nonce)", nonce[1], WPA_NONCE_LEN); in wpa_tdls_generate_tpk()
702 os_memset(peer->inonce, 0, WPA_NONCE_LEN); in wpa_tdls_peer_clear()
[all …]
Dpeerkey.h17 u8 inonce[WPA_NONCE_LEN]; /* Initiator Nonce */
18 u8 pnonce[WPA_NONCE_LEN]; /* Peer Nonce */
Dwpa_i.h28 u8 snonce[WPA_NONCE_LEN];
29 u8 anonce[WPA_NONCE_LEN]; /* ANonce from the last 1/4 msg */
Dwpa.c421 os_memcpy(reply->key_nonce, nonce, WPA_NONCE_LEN); in wpa_supplicant_send_2_of_4()
490 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4()
497 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
543 os_memcpy(sm->anonce, key->key_nonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4()
1229 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_3_of_4()
1735 wpa_hexdump(MSG_DEBUG, " key_nonce", key->key_nonce, WPA_NONCE_LEN); in wpa_eapol_key_dump()
/external/wpa_supplicant_8/src/common/
Dwpa_common.c146 u8 data[2 * ETH_ALEN + 2 * WPA_NONCE_LEN]; in wpa_pmk_to_ptk()
158 if (os_memcmp(nonce1, nonce2, WPA_NONCE_LEN) < 0) { in wpa_pmk_to_ptk()
159 os_memcpy(data + 2 * ETH_ALEN, nonce1, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
160 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce2, in wpa_pmk_to_ptk()
161 WPA_NONCE_LEN); in wpa_pmk_to_ptk()
163 os_memcpy(data + 2 * ETH_ALEN, nonce2, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
164 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce1, in wpa_pmk_to_ptk()
165 WPA_NONCE_LEN); in wpa_pmk_to_ptk()
189 wpa_hexdump(MSG_DEBUG, "WPA: Nonce1", nonce1, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
190 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
178 u8 key_nonce[WPA_NONCE_LEN];
193 u8 key_nonce[WPA_NONCE_LEN];
315 u8 anonce[WPA_NONCE_LEN];
316 u8 snonce[WPA_NONCE_LEN];