mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
eapol: Handle cmac_aes in eapol_calcuate_mic
This commit is contained in:
parent
63aae17aa8
commit
87f775475a
@ -29,6 +29,7 @@
|
||||
|
||||
#include "sha1.h"
|
||||
#include "md5.h"
|
||||
#include "aes.h"
|
||||
#include "eapol.h"
|
||||
|
||||
#define VERIFY_IS_ZERO(field) \
|
||||
@ -61,7 +62,7 @@ bool eapol_calculate_mic(const uint8_t *kck, const struct eapol_key *frame,
|
||||
case EAPOL_KEY_DESCRIPTOR_VERSION_HMAC_SHA1_AES:
|
||||
return hmac_sha1(kck, 16, frame, frame_len, mic, 16);
|
||||
case EAPOL_KEY_DESCRIPTOR_VERSION_AES_128_CMAC_AES:
|
||||
return false;
|
||||
return cmac_aes(kck, 16, frame, frame_len, mic, 16);
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user