]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Previously missed aes_s2v() error path
authorJouni Malinen <jouni@codeaurora.org>
Tue, 16 Apr 2019 17:54:25 +0000 (20:54 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 16 Apr 2019 17:54:25 +0000 (20:54 +0300)
This targets the omac1_aes_vector() call from within the 0..num_elem-1
loop in aes_s2v().

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_wpas_mesh.py

index 2381095640c5652fe7d18126b057d0b5e8935c5f..388f206e955ee02cde305e2397ca3c0c5634158b 100644 (file)
@@ -1321,6 +1321,8 @@ def test_mesh_wpa_auth_init_oom(dev, apdev):
 def test_mesh_wpa_init_fail(dev, apdev):
     """Secure mesh network setup local failure"""
     check_mesh_support(dev[0], secure=True)
+    check_mesh_support(dev[1], secure=True)
+    check_mesh_support(dev[2], secure=True)
     dev[0].request("SET sae_groups ")
 
     with fail_test(dev[0], 1, "os_get_random;=__mesh_rsn_auth_init"):
@@ -1343,6 +1345,14 @@ def test_mesh_wpa_init_fail(dev, apdev):
         dev[1].mesh_group_add(id)
         wait_fail_trigger(dev[0], "GET_FAIL")
 
+    with fail_test(dev[0], 2, "=omac1_aes_vector;aes_siv_encrypt"):
+        id = add_mesh_secure_net(dev[2])
+        dev[0].mesh_group_add(id)
+        dev[2].request("SET sae_groups ")
+        id = add_mesh_secure_net(dev[2])
+        dev[2].mesh_group_add(id)
+        wait_fail_trigger(dev[0], "GET_FAIL")
+
 def test_wpas_mesh_reconnect(dev, apdev):
     """Secure mesh network plink counting during reconnection"""
     check_mesh_support(dev[0])