From: Jouni Malinen Date: Fri, 26 Apr 2019 14:36:27 +0000 (+0300) Subject: tests: Update SAE local error tests to match implementation X-Git-Tag: hostap_2_9~322 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbd671acb586b48ec77a5c07282a0d5d2f18480b;p=thirdparty%2Fhostap.git tests: Update SAE local error tests to match implementation 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 --- diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index 032dbe0ac..845561fb6 100644 --- a/tests/hwsim/test_sae.py +++ b/tests/hwsim/test_sae.py @@ -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"),