/external/wpa_supplicant_8/src/ap/ |
D | peerkey_auth.c | 162 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 …]
|
D | wpa_auth_i.h | 59 u8 ANonce[WPA_NONCE_LEN]; 60 u8 SNonce[WPA_NONCE_LEN]; 61 u8 alt_SNonce[WPA_NONCE_LEN]; 154 u8 Counter[WPA_NONCE_LEN]; 164 u8 GNonce[WPA_NONCE_LEN];
|
D | wpa_auth.c | 346 group->Counter, WPA_NONCE_LEN) < 0) in wpa_group_init_gmk_and_counter() 349 group->Counter, WPA_NONCE_LEN); in wpa_group_init_gmk_and_counter() 861 os_memcpy(sm->SNonce, sm->alt_SNonce, WPA_NONCE_LEN); in wpa_try_alt_snonce() 941 WPA_NONCE_LEN); in wpa_receive() 1029 os_memcmp(sm->SNonce, key->key_nonce, WPA_NONCE_LEN) != 0) in wpa_receive() 1043 os_memcpy(sm->alt_SNonce, sm->SNonce, WPA_NONCE_LEN); in wpa_receive() 1102 random_add_randomness(key->key_nonce, WPA_NONCE_LEN); in wpa_receive() 1351 os_memcpy(sm->SNonce, key->key_nonce, WPA_NONCE_LEN); in wpa_receive() 1359 u8 data[ETH_ALEN + WPA_NONCE_LEN + 8 + 16]; in wpa_gmk_to_gtk() 1371 os_memcpy(data + ETH_ALEN, gnonce, WPA_NONCE_LEN); in wpa_gmk_to_gtk() [all …]
|
D | wpa_auth_ft.c | 117 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/ |
D | peerkey.c | 139 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 …]
|
D | wpa_ft.c | 260 os_memcpy(ftie->snonce, sm->snonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies() 262 os_memcpy(ftie->anonce, anonce, WPA_NONCE_LEN); in wpa_ft_gen_req_ies() 354 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request() 427 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_process_response() 430 ftie->snonce, WPA_NONCE_LEN); in wpa_ft_process_response() 432 sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response() 468 wpa_hexdump(MSG_DEBUG, "FT: SNonce", sm->snonce, WPA_NONCE_LEN); in wpa_ft_process_response() 469 wpa_hexdump(MSG_DEBUG, "FT: ANonce", ftie->anonce, WPA_NONCE_LEN); in wpa_ft_process_response() 470 os_memcpy(sm->anonce, ftie->anonce, WPA_NONCE_LEN); in wpa_ft_process_response() 705 if (os_memcmp(ftie->snonce, sm->snonce, WPA_NONCE_LEN) != 0) { in wpa_ft_validate_reassoc_resp() [all …]
|
D | tdls.c | 55 u8 Anonce[WPA_NONCE_LEN]; /* Responder Nonce in TDLS */ 56 u8 Snonce[WPA_NONCE_LEN]; /* Initiator Nonce in TDLS */ 99 u8 inonce[WPA_NONCE_LEN]; /* Initiator Nonce */ 100 u8 rnonce[WPA_NONCE_LEN]; /* Responder Nonce */ 400 len[0] = WPA_NONCE_LEN; in wpa_tdls_generate_tpk() 401 len[1] = WPA_NONCE_LEN; in wpa_tdls_generate_tpk() 402 if (os_memcmp(peer->inonce, peer->rnonce, WPA_NONCE_LEN) < 0) { in wpa_tdls_generate_tpk() 409 wpa_hexdump(MSG_DEBUG, "TDLS: min(Nonce)", nonce[0], WPA_NONCE_LEN); in wpa_tdls_generate_tpk() 410 wpa_hexdump(MSG_DEBUG, "TDLS: max(Nonce)", nonce[1], WPA_NONCE_LEN); in wpa_tdls_generate_tpk() 695 os_memset(peer->inonce, 0, WPA_NONCE_LEN); in wpa_tdls_peer_clear() [all …]
|
D | peerkey.h | 17 u8 inonce[WPA_NONCE_LEN]; /* Initiator Nonce */ 18 u8 pnonce[WPA_NONCE_LEN]; /* Peer Nonce */
|
D | wpa_i.h | 27 u8 snonce[WPA_NONCE_LEN]; 28 u8 anonce[WPA_NONCE_LEN]; /* ANonce from the last 1/4 msg */
|
D | wpa.c | 409 os_memcpy(reply->key_nonce, nonce, WPA_NONCE_LEN); in wpa_supplicant_send_2_of_4() 480 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_supplicant_process_1_of_4() 487 sm->snonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4() 532 os_memcpy(sm->anonce, key->key_nonce, WPA_NONCE_LEN); in wpa_supplicant_process_1_of_4() 1179 if (os_memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) { in wpa_supplicant_process_3_of_4() 1670 wpa_hexdump(MSG_DEBUG, " key_nonce", key->key_nonce, WPA_NONCE_LEN); in wpa_eapol_key_dump()
|
/external/wpa_supplicant_8/src/common/ |
D | wpa_common.c | 146 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() 183 wpa_hexdump(MSG_DEBUG, "WPA: Nonce1", nonce1, WPA_NONCE_LEN); in wpa_pmk_to_ptk() 184 wpa_hexdump(MSG_DEBUG, "WPA: Nonce2", nonce2, WPA_NONCE_LEN); in wpa_pmk_to_ptk() [all …]
|
D | wpa_common.h | 16 #define WPA_NONCE_LEN 32 macro 176 u8 key_nonce[WPA_NONCE_LEN]; 191 u8 key_nonce[WPA_NONCE_LEN]; 313 u8 anonce[WPA_NONCE_LEN]; 314 u8 snonce[WPA_NONCE_LEN];
|