From 87f775475a529648fa99f1b1553dcb2cc0f37221 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 13 Feb 2015 14:52:48 -0600 Subject: [PATCH] eapol: Handle cmac_aes in eapol_calcuate_mic --- src/eapol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eapol.c b/src/eapol.c index 602bd2d7..7d183b19 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -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; }