]> git.ipfire.org Git - thirdparty/hostap.git/commit - wlantest/rx_data.c
Make struct wpa_eapol_key easier to use with variable length MIC
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 2 Sep 2015 19:55:03 +0000 (22:55 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 10 Oct 2016 18:11:46 +0000 (21:11 +0300)
commit6d014ffc6e654e7e802263c55ce568df153a1e1c
tree4c73dfdd2e159d506420c43ec228a31a0ec656a8
parent94f66e8a26df9144d5bc33fe49d29fa222f047ef
Make struct wpa_eapol_key easier to use with variable length MIC

Suite B 192-bit addition from IEEE Std 802.11ac-2013 replaced the
previous fixed length Key MIC field with a variable length field. That
change was addressed with an addition of a new struct defined for the
second MIC length. This is not really scalable and with FILS coming up
with a zero-length MIC case for AEAD, a more thorough change to support
variable length MIC is needed.

Remove the Key MIC and Key Data Length fields from the struct
wpa_eapol_key and find their location based on the MIC length
information (which is determined by the AKMP). This change allows the
separate struct wpa_eapol_key_192 to be removed since struct
wpa_eapol_key will now include only the fixed length fields that are
shared with all EAPOL-Key cases in IEEE Std 802.11.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/wpa_auth.c
src/common/wpa_common.h
src/rsn_supp/peerkey.c
src/rsn_supp/peerkey.h
src/rsn_supp/wpa.c
wlantest/rx_data.c
wlantest/rx_eapol.c
wlantest/wlantest.h