wpa_eapol_key_mic() function
wpa_eapol_key_mic - Calculate EAPOL-Key MIC @key: EAPOL-Key Key Confirmation Key (KCK) @key_len: KCK length in octets @akmp: WPA_KEY_MGMT_* used in key derivation @ver: Key descriptor version (WPA_KEY_INFO_TYPE_*) @buf: Pointer to the beginning of the EAPOL header (version field) @len: Length of the EAPOL frame (from EAPOL header to the end of the frame) @mic: Pointer to the buffer to which the EAPOL-Key MIC is written Returns: 0 on success, -1 on failure Calculate EAPOL-Key MIC for an EAPOL-Key packet. The EAPOL-Key MIC field has to be cleared (all zeroes) when calling this function. Note: 'IEEE Std 802.11i-2004 - 8.5.2 EAPOL-Key frames' has an error in the description of the Key MIC calculation. It includes packet data from the beginning of the EAPOL-Key header, not EAPOL header. This incorrect change happened during final editing of the standard and the correct behavior is defined in the last draft (IEEE 802.11i/D10).
wpa_eapol_key_mic() is called by 4 functions and calls 4 functions:
![]()
wpa_eapol_key_mic()
wpa_eapol_key_mic():
![]()
wpa_eapol_key_mic()