mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 18:59:22 +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 "sha1.h"
|
||||||
#include "md5.h"
|
#include "md5.h"
|
||||||
|
#include "aes.h"
|
||||||
#include "eapol.h"
|
#include "eapol.h"
|
||||||
|
|
||||||
#define VERIFY_IS_ZERO(field) \
|
#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:
|
case EAPOL_KEY_DESCRIPTOR_VERSION_HMAC_SHA1_AES:
|
||||||
return hmac_sha1(kck, 16, frame, frame_len, mic, 16);
|
return hmac_sha1(kck, 16, frame, frame_len, mic, 16);
|
||||||
case EAPOL_KEY_DESCRIPTOR_VERSION_AES_128_CMAC_AES:
|
case EAPOL_KEY_DESCRIPTOR_VERSION_AES_128_CMAC_AES:
|
||||||
return false;
|
return cmac_aes(kck, 16, frame, frame_len, mic, 16);
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user