From 9ec3debf24f8acacdb162f0f53f241b1859aa503 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 26 Dec 2016 14:50:28 +0200 Subject: [PATCH] tests: FILS SK authentication with SHA384 Signed-off-by: Jouni Malinen --- tests/hwsim/test_fils.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/test_fils.py b/tests/hwsim/test_fils.py index 0dd60d7de..32d41ee5d 100644 --- a/tests/hwsim/test_fils.py +++ b/tests/hwsim/test_fils.py @@ -165,6 +165,13 @@ def test_fils_sk_pmksa_caching(dev, apdev): def test_fils_sk_erp(dev, apdev): """FILS SK using ERP""" + run_fils_sk_erp(dev, apdev, "FILS-SHA256") + +def test_fils_sk_erp_sha384(dev, apdev): + """FILS SK using ERP and SHA384""" + run_fils_sk_erp(dev, apdev, "FILS-SHA384") + +def run_fils_sk_erp(dev, apdev, key_mgmt): check_fils_capa(dev[0]) check_erp_capa(dev[0]) @@ -172,7 +179,7 @@ def test_fils_sk_erp(dev, apdev): bssid = apdev[0]['bssid'] params = hostapd.wpa2_eap_params(ssid="fils") - params['wpa_key_mgmt'] = "FILS-SHA256" + params['wpa_key_mgmt'] = key_mgmt params['auth_server_port'] = "18128" params['erp_domain'] = 'example.com' params['fils_realm'] = 'example.com' @@ -181,7 +188,7 @@ def test_fils_sk_erp(dev, apdev): dev[0].scan_for_bss(bssid, freq=2412) dev[0].request("ERP_FLUSH") - id = dev[0].connect("fils", key_mgmt="FILS-SHA256", + id = dev[0].connect("fils", key_mgmt=key_mgmt, eap="PSK", identity="psk.user@example.com", password_hex="0123456789abcdef0123456789abcdef", erp="1", scan_freq="2412")