mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 22:59:41 +01:00
eapol: Take out unneeded cast
This commit is contained in:
parent
729d2d7f2c
commit
63aae17aa8
@ -57,11 +57,9 @@ bool eapol_calculate_mic(const uint8_t *kck, const struct eapol_key *frame,
|
||||
|
||||
switch (frame->key_descriptor_version) {
|
||||
case EAPOL_KEY_DESCRIPTOR_VERSION_HMAC_MD5_ARC4:
|
||||
return hmac_md5(kck, 16, (uint8_t *) frame, frame_len,
|
||||
mic, 16);
|
||||
return hmac_md5(kck, 16, frame, frame_len, mic, 16);
|
||||
case EAPOL_KEY_DESCRIPTOR_VERSION_HMAC_SHA1_AES:
|
||||
return hmac_sha1(kck, 16, (uint8_t *) frame, frame_len,
|
||||
mic, 16);
|
||||
return hmac_sha1(kck, 16, frame, frame_len, mic, 16);
|
||||
case EAPOL_KEY_DESCRIPTOR_VERSION_AES_128_CMAC_AES:
|
||||
return false;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user