mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
eapol: use HMAC-SHA384 for OWE in MIC calculation
This commit is contained in:
parent
7bfaf182e6
commit
d79b2b28ec
10
src/eapol.c
10
src/eapol.c
@ -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,
|
||||
mic, mic_len);
|
||||
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,
|
||||
mic_len);
|
||||
case 24:
|
||||
return hmac_sha384(kck, 24, frame, frame_len,
|
||||
mic, mic_len);
|
||||
}
|
||||
|
||||
/* fall through */
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user