mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-17 17:39:28 +01:00
eapol: Fix key-IV check in EAPOL-Key verification
The comment correctly states the IV is 0 for version 2, but the check was actually for version 1.
This commit is contained in:
parent
93aaf21459
commit
4a27563b5a
@ -332,7 +332,7 @@ bool eapol_verify_ptk_3_of_4(const struct eapol_key *ek)
|
||||
|
||||
/* 0 (Version 2) or random (Version 1) */
|
||||
if (ek->key_descriptor_version ==
|
||||
EAPOL_KEY_DESCRIPTOR_VERSION_HMAC_MD5_ARC4)
|
||||
EAPOL_KEY_DESCRIPTOR_VERSION_HMAC_SHA1_AES)
|
||||
VERIFY_IS_ZERO(ek->eapol_key_iv);
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user