eapol: Handle cmac_aes in eapol_calcuate_mic

This commit is contained in:
Denis Kenzior 2015-02-13 14:52:48 -06:00
parent 63aae17aa8
commit 87f775475a
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}