mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-07 04:34:04 -05:00
FILS: Fix ifdef for PTK derivation with SHA384-based AKM
sha384_prf() is used both with Suite B and FILS, so add CONFIG_FILS as another alternative to building in this functionality. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
2e555f9cb0
commit
e491389ebc
@ -194,12 +194,12 @@ int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label,
|
|||||||
ptk->tk_len = wpa_cipher_key_len(cipher);
|
ptk->tk_len = wpa_cipher_key_len(cipher);
|
||||||
ptk_len = ptk->kck_len + ptk->kek_len + ptk->tk_len;
|
ptk_len = ptk->kck_len + ptk->kek_len + ptk->tk_len;
|
||||||
|
|
||||||
#ifdef CONFIG_SUITEB192
|
#if defined(CONFIG_SUITEB192) || defined(CONFIG_FILS)
|
||||||
if (wpa_key_mgmt_sha384(akmp))
|
if (wpa_key_mgmt_sha384(akmp))
|
||||||
sha384_prf(pmk, pmk_len, label, data, sizeof(data),
|
sha384_prf(pmk, pmk_len, label, data, sizeof(data),
|
||||||
tmp, ptk_len);
|
tmp, ptk_len);
|
||||||
else
|
else
|
||||||
#endif /* CONFIG_SUITEB192 */
|
#endif /* CONFIG_SUITEB192 || CONFIG_FILS */
|
||||||
#ifdef CONFIG_IEEE80211W
|
#ifdef CONFIG_IEEE80211W
|
||||||
if (wpa_key_mgmt_sha256(akmp))
|
if (wpa_key_mgmt_sha256(akmp))
|
||||||
sha256_prf(pmk, pmk_len, label, data, sizeof(data),
|
sha256_prf(pmk, pmk_len, label, data, sizeof(data),
|
||||||
|
Loading…
Reference in New Issue
Block a user