3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 06:02:37 +01:00

eapol: use HMAC-SHA384 for OWE in MIC calculation

This commit is contained in:
James Prestwood 2019-01-17 12:25:37 -08:00 committed by Denis Kenzior
parent 7bfaf182e6
commit d79b2b28ec

View File

@ -85,9 +85,17 @@ bool eapol_calculate_mic(enum ie_rsn_akm_suite akm, const uint8_t *kck,
return cmac_aes(kck, 16, frame, frame_len, return cmac_aes(kck, 16, frame, frame_len,
mic, mic_len); mic, mic_len);
case IE_RSN_AKM_SUITE_OWE: case IE_RSN_AKM_SUITE_OWE:
return hmac_sha256(kck, mic_len, frame, switch (mic_len) {
case 16:
return hmac_sha256(kck, mic_len, frame,
frame_len, mic, frame_len, mic,
mic_len); mic_len);
case 24:
return hmac_sha384(kck, 24, frame, frame_len,
mic, mic_len);
}
/* fall through */
default: default:
return false; return false;
} }