/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/ |
D | wpa.c | 55 size_t mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_eapol_key_send() local 59 MAC2STR(dest), ver, (int) mic_len, sm->key_mgmt); in wpa_eapol_key_send() 78 if (mic_len) { in wpa_eapol_key_send() 94 key_mic, mic_len); in wpa_eapol_key_send() 181 size_t mic_len, hdrlen, rlen; in wpa_sm_key_request() local 202 mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_sm_key_request() 203 hdrlen = sizeof(*reply) + mic_len + 2; in wpa_sm_key_request() 215 if (sm->ptk_set && mic_len) in wpa_sm_key_request() 228 WPA_PUT_BE16(mic + mic_len, 0); in wpa_sm_key_request() 475 size_t mic_len, hdrlen, rlen; in wpa_supplicant_send_2_of_4() local [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | pasn_supplicant.c | 773 u8 mic_len, data_len; in wpas_pasn_build_auth_3() local 808 mic_len = pasn_mic_len(pasn->akmp, pasn->cipher); in wpas_pasn_build_auth_3() 810 wpabuf_put_u8(buf, mic_len); in wpas_pasn_build_auth_3() 811 ptr = wpabuf_put(buf, mic_len); in wpas_pasn_build_auth_3() 813 os_memset(ptr, 0, mic_len); in wpas_pasn_build_auth_3() 820 pasn->hash, mic_len * 2, data, data_len, mic); in wpas_pasn_build_auth_3() 833 os_memcpy(ptr, mic, mic_len); in wpas_pasn_build_auth_3() 1340 u8 mic_len; in wpas_pasn_auth_rx() local 1394 mic_len = pasn_mic_len(pasn->akmp, pasn->cipher); in wpas_pasn_auth_rx() 1396 if (!elems.mic || elems.mic_len != mic_len) { in wpas_pasn_auth_rx() [all …]
|
D | mesh_rsn.c | 663 if (!elems->mic || elems->mic_len < AES_BLOCK_SIZE) { in mesh_rsn_process_ampe() 668 ampe_buf = (u8 *) elems->mic + elems->mic_len; in mesh_rsn_process_ampe()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/ |
D | wpa.c | 57 size_t mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_eapol_key_send() local 61 MAC2STR(dest), ver, (int) mic_len, sm->key_mgmt); in wpa_eapol_key_send() 80 if (mic_len) { in wpa_eapol_key_send() 96 key_mic, mic_len); in wpa_eapol_key_send() 183 size_t mic_len, hdrlen, rlen; in wpa_sm_key_request() local 212 mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len); in wpa_sm_key_request() 213 hdrlen = sizeof(*reply) + mic_len + 2; in wpa_sm_key_request() 225 if (sm->ptk_set && mic_len) in wpa_sm_key_request() 238 WPA_PUT_BE16(mic + mic_len, 0); in wpa_sm_key_request() 489 size_t mic_len, hdrlen, rlen; in wpa_supplicant_send_2_of_4() local [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | wpa_auth.c | 961 size_t keyhdrlen, mic_len; in wpa_receive() local 968 mic_len = wpa_mic_len(sm->wpa_key_mgmt, sm->pmk_len); in wpa_receive() 969 keyhdrlen = sizeof(*key) + mic_len + 2; in wpa_receive() 980 key_data = mic + mic_len + 2; in wpa_receive() 981 key_data_length = WPA_GET_BE16(mic + mic_len); in wpa_receive() 985 (unsigned int) mic_len, key_data_length); in wpa_receive() 990 mic, mic_len); in wpa_receive() 1043 (mic_len == 0 && (key_info & WPA_KEY_INFO_ENCR_KEY_DATA) && in wpa_receive() 1168 if (sm->wpa == WPA_VERSION_WPA2 && mic_len == 0 && in wpa_receive() 1259 if (mic_len && in wpa_receive() [all …]
|
D | wpa_auth_ft.c | 3119 size_t mic_len = 16; in wpa_ft_validate_reassoc() local 3280 if (os_memcmp_const(mic, fte_mic, mic_len) != 0) { in wpa_ft_validate_reassoc() 3285 fte_mic, mic_len); in wpa_ft_validate_reassoc() 3286 wpa_hexdump(MSG_MSGDUMP, "FT: Calculated MIC", mic, mic_len); in wpa_ft_validate_reassoc()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | wpa_auth.c | 1033 size_t keyhdrlen, mic_len; in wpa_receive() local 1040 mic_len = wpa_mic_len(sm->wpa_key_mgmt, sm->pmk_len); in wpa_receive() 1041 keyhdrlen = sizeof(*key) + mic_len + 2; in wpa_receive() 1052 key_data = mic + mic_len + 2; in wpa_receive() 1053 key_data_length = WPA_GET_BE16(mic + mic_len); in wpa_receive() 1057 mic_len, key_data_length); in wpa_receive() 1062 mic, mic_len); in wpa_receive() 1114 (mic_len == 0 && (key_info & WPA_KEY_INFO_ENCR_KEY_DATA) && in wpa_receive() 1233 if (sm->wpa == WPA_VERSION_WPA2 && mic_len == 0 && in wpa_receive() 1320 if (mic_len && in wpa_receive() [all …]
|
D | ieee802_11.c | 2952 u8 mic_len; in handle_auth_pasn_resp() local 3024 mic_len = pasn_mic_len(sta->pasn->akmp, sta->pasn->cipher); in handle_auth_pasn_resp() 3026 wpabuf_put_u8(buf, mic_len); in handle_auth_pasn_resp() 3027 ptr = wpabuf_put(buf, mic_len); in handle_auth_pasn_resp() 3029 os_memset(ptr, 0, mic_len); in handle_auth_pasn_resp() 3073 os_memcpy(ptr, mic, mic_len); in handle_auth_pasn_resp() 3388 u8 mic_len; in handle_auth_pasn_3() local 3401 mic_len = pasn_mic_len(sta->pasn->akmp, sta->pasn->cipher); in handle_auth_pasn_3() 3402 if (!elems.mic || elems.mic_len != mic_len) { in handle_auth_pasn_3() 3404 "PASN: Invalid MIC. Expecting len=%u", mic_len); in handle_auth_pasn_3() [all …]
|
D | wpa_auth_ft.c | 3316 size_t mic_len = 16; in wpa_ft_validate_reassoc() local 3485 if (os_memcmp_const(mic, fte_mic, mic_len) != 0) { in wpa_ft_validate_reassoc() 3490 fte_mic, mic_len); in wpa_ft_validate_reassoc() 3491 wpa_hexdump(MSG_MSGDUMP, "FT: Calculated MIC", mic, mic_len); in wpa_ft_validate_reassoc()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | wpa_common.c | 765 size_t mic_len, fte_fixed_len; in wpa_ft_mic() local 768 mic_len = 16; in wpa_ft_mic() 771 mic_len = 24; in wpa_ft_mic() 779 fte_fixed_len = sizeof(struct rsn_ftie) - 16 + mic_len; in wpa_ft_mic() 813 os_memset(zero_mic, 0, mic_len); in wpa_ft_mic() 815 len[num_elem] = mic_len; in wpa_ft_mic() 819 addr[num_elem] = ftie + 2 + 2 + mic_len; in wpa_ft_mic() 820 len[num_elem] = ftie_len - (2 + 2 + mic_len); in wpa_ft_mic()
|
D | ieee802_11_common.h | 126 u8 mic_len; member
|
D | ieee802_11_common.c | 466 elems->mic_len = elen; in ieee802_11_parse_elems()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | wpa_common.c | 832 size_t mic_len, fte_fixed_len; in wpa_ft_mic() local 835 mic_len = 16; in wpa_ft_mic() 838 mic_len = 24; in wpa_ft_mic() 846 fte_fixed_len = sizeof(struct rsn_ftie) - 16 + mic_len; in wpa_ft_mic() 880 os_memset(zero_mic, 0, mic_len); in wpa_ft_mic() 882 len[num_elem] = mic_len; in wpa_ft_mic() 886 addr[num_elem] = ftie + 2 + 2 + mic_len; in wpa_ft_mic() 887 len[num_elem] = ftie_len - (2 + 2 + mic_len); in wpa_ft_mic()
|
D | ieee802_11_common.h | 149 u8 mic_len; member
|
D | ieee802_11_common.c | 529 elems->mic_len = elen; in ieee802_11_parse_elems()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | mesh_rsn.c | 668 if (!elems->mic || elems->mic_len < AES_BLOCK_SIZE) { in mesh_rsn_process_ampe() 673 ampe_buf = (u8 *) elems->mic + elems->mic_len; in mesh_rsn_process_ampe()
|