]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/wpa_auth.c
FILS: Fix AES-SIV AAD for (Re)Association Request frame decryption
authorJouni Malinen <jouni@qca.qualcomm.com>
Sat, 4 Feb 2017 11:05:58 +0000 (13:05 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 4 Feb 2017 11:09:52 +0000 (13:09 +0200)
commitd77f33041886948ec2acd9240a774ac09e0e26e9
tree7d03aaf83c5c8a1770dedcb42cb26629af021635
parent7a6c3de23a14e39ef833399635a2c77f004e733b
FILS: Fix AES-SIV AAD for (Re)Association Request frame decryption

The hostapd processing of the AES-SIV AAD was incorrect. The design for
the AAD changed between P802.11ai/D7.0 and D8.0 from a single vector
with concatenated data to separate vectors. The change in the
implementation had missed the change in the aes_siv_decrypt() call for
the num_elem parameter. This happened to work with the mac80211
implementation due to a similar error there.

Fix this by using the correct numbers of vectors in the SIV AAD so that
all the vectors get checked. The last vector was also 14 octets too long
due to incorrect starting pointer, so fix that as well. The changes here
are not backwards compatible, i.e., a similar fix in the Linux mac80211
is needed to make things interoperate again.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/wpa_auth.c