]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Update SAE local error tests to match implementation
authorJouni Malinen <jouni@codeaurora.org>
Fri, 26 Apr 2019 14:36:27 +0000 (17:36 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 26 Apr 2019 14:36:27 +0000 (17:36 +0300)
The change to use a shared dragonfly_generate_scalar() helper function
resulted in failures in sae_no_random and sae_bignum_failure test cases
due to renamed functions and removed uses.

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

index 032dbe0ac48671bc0dffe8bd234951494b74e982..845561fb6c965e0998c9b1324899143b78b1ccac 100644 (file)
@@ -1118,8 +1118,7 @@ def test_sae_no_random(dev, apdev):
     hapd = hostapd.add_ap(apdev[0], params)
 
     dev[0].request("SET sae_groups ")
-    tests = [(1, "os_get_random;sae_get_rand"),
-             (1, "os_get_random;sae_derive_pwe_ecc")]
+    tests = [(1, "os_get_random;sae_derive_pwe_ecc")]
     for count, func in tests:
         with fail_test(dev[0], count, func):
             dev[0].connect("test-sae", psk="12345678", key_mgmt="SAE",
@@ -1218,7 +1217,8 @@ def test_sae_bignum_failure(dev, apdev):
     dev[0].request("SET sae_groups 15")
     tests = [(1, "crypto_bignum_init_set;sae_set_group"),
              (2, "crypto_bignum_init_set;sae_set_group"),
-             (1, "crypto_bignum_init_set;sae_get_rand"),
+             (1, "crypto_bignum_init;sae_derive_commit"),
+             (2, "crypto_bignum_init;sae_derive_commit"),
              (1, "crypto_bignum_init_set;sae_test_pwd_seed_ffc"),
              (1, "crypto_bignum_exptmod;sae_test_pwd_seed_ffc"),
              (1, "crypto_bignum_init;sae_derive_pwe_ffc"),