/hostap-latest/wlantest/ |
D | bip.c | 82 size_t plen, mic_len, element_len, buf_len; in bip_protect_s1g_beacon() local 85 mic_len = igtk_len == 32 ? 16 : 8; in bip_protect_s1g_beacon() 87 element_len = MIC_ELEM_LEN_LESS_MIC + mic_len; in bip_protect_s1g_beacon() 89 element_len = MME_LEN_LESS_MIC + mic_len; in bip_protect_s1g_beacon() 111 os_memset(pos, 0, mic_len); /* MIC */ in bip_protect_s1g_beacon() 180 os_memcpy(pos, mic, mic_len); in bip_protect_s1g_beacon() 181 wpa_hexdump(MSG_DEBUG, "S1G BIP-CMAC MIC", pos, mic_len); in bip_protect_s1g_beacon() 262 size_t plen, mic_len, element_len, buf_len; in bip_gmac_protect_s1g_beacon() local 266 mic_len = 16; in bip_gmac_protect_s1g_beacon() 268 element_len = MIC_ELEM_LEN_LESS_MIC + mic_len; in bip_gmac_protect_s1g_beacon() [all …]
|
D | rx_eapol.c | 65 size_t mic_len = determine_mic_len(sta); in check_mic() local 73 os_memcpy(rx_mic, key + 1, mic_len); in check_mic() 74 os_memset(key + 1, 0, mic_len); in check_mic() 78 os_memcmp(rx_mic, key + 1, mic_len) == 0) in check_mic() 96 size_t mic_len, left; in rx_data_eapol_key_1_of_4() local 122 mic_len = determine_mic_len(sta); in rx_data_eapol_key_1_of_4() 123 if (mic_len > left) { in rx_data_eapol_key_1_of_4() 128 left -= mic_len; in rx_data_eapol_key_1_of_4() 146 key_data = mic + mic_len + 2; in rx_data_eapol_key_1_of_4() 147 key_data_len = WPA_GET_BE16(mic + mic_len); in rx_data_eapol_key_1_of_4() [all …]
|
D | rx_mgmt.c | 409 size_t mic_len; in rx_mgmt_beacon() local 585 mic_len = bss->mgmt_group_cipher == WPA_CIPHER_AES_128_CMAC ? 8 : 16; in rx_mgmt_beacon() 586 if (len < 24 + 10 + mic_len || in rx_mgmt_beacon() 587 data[len - (10 + mic_len)] != WLAN_EID_MMIE || in rx_mgmt_beacon() 588 data[len - (10 + mic_len - 1)] != 8 + mic_len) { in rx_mgmt_beacon() 605 wpa_hexdump(MSG_MSGDUMP, "MME MIC", mme + 8, mic_len); in rx_mgmt_beacon() 1571 size_t mic_len = 16; in rx_mgmt_reassoc_req() local 1742 if (os_memcmp_const(mic, fte_mic, mic_len) != 0) { in rx_mgmt_reassoc_req() 1750 fte_mic, mic_len); in rx_mgmt_reassoc_req() 1752 mic, mic_len); in rx_mgmt_reassoc_req() [all …]
|
/hostap-latest/src/pasn/ |
D | pasn_responder.c | 432 u8 mic_len; in handle_auth_pasn_resp() local 508 mic_len = pasn_mic_len(pasn->akmp, pasn->cipher); in handle_auth_pasn_resp() 510 wpabuf_put_u8(buf, mic_len); in handle_auth_pasn_resp() 511 ptr = wpabuf_put(buf, mic_len); in handle_auth_pasn_resp() 513 os_memset(ptr, 0, mic_len); in handle_auth_pasn_resp() 574 os_memcpy(ptr, mic, mic_len); in handle_auth_pasn_resp() 922 u8 mic_len; in handle_auth_pasn_3() local 937 mic_len = pasn_mic_len(pasn->akmp, pasn->cipher); in handle_auth_pasn_3() 938 if (!elems.mic || elems.mic_len != mic_len) { in handle_auth_pasn_3() 940 "PASN: Invalid MIC. Expecting len=%u", mic_len); in handle_auth_pasn_3() [all …]
|
D | pasn_initiator.c | 623 u8 mic_len, data_len; in wpas_pasn_build_auth_3() local 658 mic_len = pasn_mic_len(pasn->akmp, pasn->cipher); in wpas_pasn_build_auth_3() 660 wpabuf_put_u8(buf, mic_len); in wpas_pasn_build_auth_3() 661 ptr = wpabuf_put(buf, mic_len); in wpas_pasn_build_auth_3() 663 os_memset(ptr, 0, mic_len); in wpas_pasn_build_auth_3() 670 pasn->hash, mic_len * 2, data, data_len, mic); in wpas_pasn_build_auth_3() 683 os_memcpy(ptr, mic, mic_len); in wpas_pasn_build_auth_3() 1069 u8 mic_len; in wpa_pasn_auth_rx() local 1106 mic_len = pasn_mic_len(pasn->akmp, pasn->cipher); in wpa_pasn_auth_rx() 1108 if (!elems.mic || elems.mic_len != mic_len) { in wpa_pasn_auth_rx() [all …]
|
/hostap-latest/src/rsn_supp/ |
D | wpa.c | 96 size_t mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_eapol_key_send() local 100 MAC2STR(dest), ver, (int) mic_len, sm->key_mgmt); in wpa_eapol_key_send() 119 if (mic_len) { in wpa_eapol_key_send() 135 key_mic, mic_len); in wpa_eapol_key_send() 222 size_t mic_len, hdrlen, rlen; in wpa_sm_key_request() local 251 mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_sm_key_request() 252 hdrlen = sizeof(*reply) + mic_len + 2; in wpa_sm_key_request() 263 if (mic_len) in wpa_sm_key_request() 278 WPA_PUT_BE16(mic + mic_len, 0); in wpa_sm_key_request() 531 size_t mic_len, hdrlen, rlen, extra_len = 0; in wpa_supplicant_send_2_of_4() local [all …]
|
D | wpa_ft.c | 1034 size_t mic_len; in wpa_ft_validate_reassoc_resp() local 1067 mic_len = 32; in wpa_ft_validate_reassoc_resp() 1071 mic_len = 24; in wpa_ft_validate_reassoc_resp() 1073 mic_len = 16; in wpa_ft_validate_reassoc_resp() 1076 parse.fte_mic_len != mic_len) { in wpa_ft_validate_reassoc_resp() 1079 parse.fte_mic_len, mic_len); in wpa_ft_validate_reassoc_resp() 1170 if (os_memcmp_const(mic, parse.fte_mic, mic_len) != 0) { in wpa_ft_validate_reassoc_resp() 1173 parse.fte_mic, mic_len); in wpa_ft_validate_reassoc_resp() 1174 wpa_hexdump(MSG_MSGDUMP, "FT: Calculated MIC", mic, mic_len); in wpa_ft_validate_reassoc_resp()
|
/hostap-latest/src/ap/ |
D | wpa_auth.c | 1545 size_t keyhdrlen, mic_len; local 1555 mic_len = wpa_mic_len(sm->wpa_key_mgmt, sm->pmk_len); 1556 keyhdrlen = sizeof(*key) + mic_len + 2; 1567 key_data = mic + mic_len + 2; 1568 key_data_length = WPA_GET_BE16(mic + mic_len); 1572 mic_len, key_data_length); 1577 mic, mic_len); 1625 if (mic_len > 0 && (key_info & WPA_KEY_INFO_ENCR_KEY_DATA) && 1659 (mic_len == 0 && (key_info & WPA_KEY_INFO_ENCR_KEY_DATA) && 1672 if (sm->wpa == WPA_VERSION_WPA2 && mic_len == 0 && [all …]
|
D | wpa_auth_ft.c | 3495 size_t mic_len; in wpa_ft_validate_reassoc() local 3545 mic_len = 32; in wpa_ft_validate_reassoc() 3549 mic_len = 24; in wpa_ft_validate_reassoc() 3551 mic_len = 16; in wpa_ft_validate_reassoc() 3554 parse.fte_mic_len != mic_len) { in wpa_ft_validate_reassoc() 3557 parse.fte_mic_len, mic_len); in wpa_ft_validate_reassoc() 3661 if (os_memcmp_const(mic, parse.fte_mic, mic_len) != 0) { in wpa_ft_validate_reassoc() 3666 parse.fte_mic, mic_len); in wpa_ft_validate_reassoc() 3667 wpa_hexdump(MSG_MSGDUMP, "FT: Calculated MIC", mic, mic_len); in wpa_ft_validate_reassoc()
|
/hostap-latest/src/common/ |
D | wpa_common.c | 908 size_t mic_len, fte_fixed_len; in wpa_ft_mic() local 912 mic_len = 16; in wpa_ft_mic() 915 mic_len = 24; in wpa_ft_mic() 919 mic_len = 32; in wpa_ft_mic() 927 fte_fixed_len = sizeof(struct rsn_ftie) - 16 + mic_len; in wpa_ft_mic() 961 os_memset(zero_mic, 0, mic_len); in wpa_ft_mic() 963 len[num_elem] = mic_len; in wpa_ft_mic() 967 addr[num_elem] = ftie + 2 + 2 + mic_len; in wpa_ft_mic() 968 len[num_elem] = ftie_len - (2 + 2 + mic_len); in wpa_ft_mic() 1155 size_t mic_len; in wpa_ft_parse_fte() local [all …]
|
D | ieee802_11_common.h | 152 u8 mic_len; member
|
D | ieee802_11_common.c | 608 elems->mic_len = elen; in __ieee802_11_parse_elems() 839 elems->mic_len = 0; in ieee802_11_elems_clear_ids()
|
/hostap-latest/wpa_supplicant/ |
D | mesh_rsn.c | 682 if (!elems->mic || elems->mic_len < AES_BLOCK_SIZE) { in mesh_rsn_process_ampe() 687 ampe_buf = (u8 *) elems->mic + elems->mic_len; in mesh_rsn_process_ampe()
|