aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wpa_common.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-09-07 21:58:11 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-22 14:51:43 (GMT)
commitc089bc5725037a619190e8e38a94bfa689ba04bc (patch)
treebcf0fef2d0ad056660b7195593ff52675ad45709 /src/common/wpa_common.h
parentce16c489d835a2f438bdd760e457e071ef1d8258 (diff)
downloadhostap-c089bc5725037a619190e8e38a94bfa689ba04bc.zip
hostap-c089bc5725037a619190e8e38a94bfa689ba04bc.tar.gz
hostap-c089bc5725037a619190e8e38a94bfa689ba04bc.tar.bz2
FILS: PMK-to-PTK key derivation for FILS authentication
This is the PTKSA key derivation used as part of the FILS authentication exchange. See P802.11ai/D11.0 12.12.2.5.3. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/common/wpa_common.h')
-rw-r--r--src/common/wpa_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/wpa_common.h b/src/common/wpa_common.h
index cff404f..d55ecad 100644
--- a/src/common/wpa_common.h
+++ b/src/common/wpa_common.h
@@ -192,6 +192,7 @@ struct wpa_eapol_key {
#define WPA_KCK_MAX_LEN 24
#define WPA_KEK_MAX_LEN 64
#define WPA_TK_MAX_LEN 32
+#define FILS_ICK_MAX_LEN 48
/**
* struct wpa_ptk - WPA Pairwise Transient Key
@@ -329,6 +330,9 @@ int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label,
const u8 *addr1, const u8 *addr2,
const u8 *nonce1, const u8 *nonce2,
struct wpa_ptk *ptk, int akmp, int cipher);
+int fils_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const u8 *spa, const u8 *aa,
+ const u8 *snonce, const u8 *anonce, struct wpa_ptk *ptk,
+ u8 *ick, size_t *ick_len, int akmp, int cipher);
#ifdef CONFIG_IEEE80211R
int wpa_ft_mic(const u8 *kck, size_t kck_len, const u8 *sta_addr,