aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
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:52 (GMT)
commita3e18dbb6aeaac79151ea5386b3606f3c973f126 (patch)
tree64fe45472189c534d8701b1fd4abce06f0f6e3eb /wlantest
parentc22bb5bba67ebff77051881c9ead7e3fef3e259b (diff)
downloadhostap-a3e18dbb6aeaac79151ea5386b3606f3c973f126.zip
hostap-a3e18dbb6aeaac79151ea5386b3606f3c973f126.tar.gz
hostap-a3e18dbb6aeaac79151ea5386b3606f3c973f126.tar.bz2
FT: Support variable length keys
This is a step in adding support for SHA384-based FT AKM. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wlantest')
-rw-r--r--wlantest/rx_eapol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wlantest/rx_eapol.c b/wlantest/rx_eapol.c
index 536a6c0..069e634 100644
--- a/wlantest/rx_eapol.c
+++ b/wlantest/rx_eapol.c
@@ -113,12 +113,12 @@ static int try_pmk(struct wlantest *wt, struct wlantest_bss *bss,
wpa_hexdump(MSG_DEBUG, "FT: PMK-R0", pmk_r0, PMK_LEN);
wpa_hexdump(MSG_DEBUG, "FT: PMKR0Name", pmk_r0_name,
WPA_PMK_NAME_LEN);
- wpa_derive_pmk_r1(pmk_r0, pmk_r0_name, bss->r1kh_id,
+ wpa_derive_pmk_r1(pmk_r0, PMK_LEN, pmk_r0_name, bss->r1kh_id,
sta->addr, pmk_r1, pmk_r1_name);
wpa_hexdump_key(MSG_DEBUG, "FT: PMK-R1", pmk_r1, PMK_LEN);
wpa_hexdump(MSG_DEBUG, "FT: PMKR1Name", pmk_r1_name,
WPA_PMK_NAME_LEN);
- if (wpa_pmk_r1_to_ptk(pmk_r1, sta->snonce, sta->anonce,
+ if (wpa_pmk_r1_to_ptk(pmk_r1, PMK_LEN, sta->snonce, sta->anonce,
sta->addr,
bss->bssid, pmk_r1_name, &ptk, ptk_name,
sta->key_mgmt,