aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wpa_common.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-06-04 12:16:54 (GMT)
committerJouni Malinen <j@w1.fi>2018-06-05 16:29:53 (GMT)
commit9a33737a0ba5be9d860e70d84f37bc16d192a16d (patch)
tree659a3d587d2af579e3d6048e773bb628847bf453 /src/common/wpa_common.h
parent8c2715b358241fb6804757b181bde5b522e27356 (diff)
downloadhostap-9a33737a0ba5be9d860e70d84f37bc16d192a16d.zip
hostap-9a33737a0ba5be9d860e70d84f37bc16d192a16d.tar.gz
hostap-9a33737a0ba5be9d860e70d84f37bc16d192a16d.tar.bz2
FT: FTE parsing for SHA384-based AKM
The MIC field is now a variable length field, so make the FTE parser aware of the two different field lengths. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/common/wpa_common.h')
-rw-r--r--src/common/wpa_common.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/common/wpa_common.h b/src/common/wpa_common.h
index bb0765a..6d808d7 100644
--- a/src/common/wpa_common.h
+++ b/src/common/wpa_common.h
@@ -314,6 +314,14 @@ struct rsn_ftie {
/* followed by optional parameters */
} STRUCT_PACKED;
+struct rsn_ftie_sha384 {
+ u8 mic_control[2];
+ u8 mic[24];
+ u8 anonce[WPA_NONCE_LEN];
+ u8 snonce[WPA_NONCE_LEN];
+ /* followed by optional parameters */
+} STRUCT_PACKED;
+
#define FTIE_SUBELEM_R1KH_ID 1
#define FTIE_SUBELEM_GTK 2
#define FTIE_SUBELEM_R0KH_ID 3
@@ -449,7 +457,8 @@ struct wpa_ft_ies {
int pairwise_cipher;
};
-int wpa_ft_parse_ies(const u8 *ies, size_t ies_len, struct wpa_ft_ies *parse);
+int wpa_ft_parse_ies(const u8 *ies, size_t ies_len, struct wpa_ft_ies *parse,
+ int use_sha384);
int wpa_cipher_key_len(int cipher);
int wpa_cipher_rsc_len(int cipher);