]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Skip too short SAE-PK passwords in positive testing
authorJouni Malinen <jouni@codeaurora.org>
Wed, 3 Jun 2020 22:41:50 +0000 (01:41 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 4 Jun 2020 20:53:33 +0000 (23:53 +0300)
Lambda >= 12 is needed with Sec = 2, so drop the shorter password
lengths in the sae_pk and module_wpa_supplicant test cases.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/common_module_tests.c
tests/hwsim/test_sae_pk.py

index 77d6001c8a8b00cf9dad8a8869aa697849d4f628..8a7d9fe252790556d9151dc48de8ece7bd5af346 100644 (file)
@@ -563,12 +563,6 @@ static int sae_pk_tests(void)
                { "aaaa-aaaa-aaaa", (u8 *) "\x00\x00\x00\x00\x00\x00\x00\x00" },
                { "aaaa-aaaa-aa", (u8 *) "\x00\x00\x00\x00\x00\x00\x00" },
                { "aaaa-aaaa", (u8 *) "\x00\x00\x00\x00\x00" },
-               { "aaaa-aaa", (u8 *) "\x00\x00\x00\x00\x00" },
-               { "aaaa-a", (u8 *) "\x00\x00\x00\x00" },
-               { "aeaa-a", (u8 *) "\x01\x00\x00\x00" },
-               { "7777-7", (u8 *) "\xff\xff\xff\x80" },
-               { "7777-77", (u8 *) "\xff\xff\xff\xfc" },
-               { "7777-777", (u8 *) "\xff\xff\xff\xff\xe0" },
                { "7777-7777", (u8 *) "\xff\xff\xff\xff\xff" },
                { "7777-7777-7", (u8 *) "\xff\xff\xff\xff\xff\xf8" },
                { "7777-7777-77", (u8 *) "\xff\xff\xff\xff\xff\xff\xc0" },
index dfecbc5e9b3c8d53823c0f577907cf6ea3a54749..4cd95cdc686c45625dfd1e73a3011531d487683d 100644 (file)
@@ -36,7 +36,7 @@ def test_sae_pk(dev, apdev):
     m = "431ff8322f93b9dc50ded9f3d14ace22"
     pk = "MHcCAQEEIAJIGlfnteonDb7rQyP/SGQjwzrZAnfrXIm4280VWajYoAoGCCqGSM49AwEHoUQDQgAEeRkstKQV+FSAMqBayqFknn2nAQsdsh/MhdX6tiHOTAFin/sUMFRMyspPtIu7YvlKdsexhI0jPVhaYZn1jKWhZg=="
 
-    for i in range(6, len(pw) + 1):
+    for i in range(14, len(pw) + 1):
         p = pw[:i]
         if p.endswith('-'):
             continue