]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Update SAE local error tests to match implementation
authorJouni Malinen <jouni@codeaurora.org>
Thu, 25 Apr 2019 17:19:11 +0000 (20:19 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 25 Apr 2019 20:49:49 +0000 (23:49 +0300)
The change to use shared dragonfly_get_random_qr_qnr() and
dragonfly_get_rand_1_to_p_1() helper functions 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 15be8eb3ad5fc2c6ed41d40b9b4545c271701d35..032dbe0ac48671bc0dffe8bd234951494b74e982 100644 (file)
@@ -1119,8 +1119,6 @@ def test_sae_no_random(dev, apdev):
 
     dev[0].request("SET sae_groups ")
     tests = [(1, "os_get_random;sae_get_rand"),
-             (1, "os_get_random;get_rand_1_to_p_1"),
-             (1, "os_get_random;get_random_qr_qnr"),
              (1, "os_get_random;sae_derive_pwe_ecc")]
     for count, func in tests:
         with fail_test(dev[0], count, func):
@@ -1181,15 +1179,14 @@ def test_sae_bignum_failure(dev, apdev):
     hapd = hostapd.add_ap(apdev[0], params)
 
     dev[0].request("SET sae_groups 19")
-    tests = [(1, "crypto_bignum_init_set;get_rand_1_to_p_1"),
-             (1, "crypto_bignum_init;is_quadratic_residue_blind"),
-             (1, "crypto_bignum_mulmod;is_quadratic_residue_blind"),
-             (2, "crypto_bignum_mulmod;is_quadratic_residue_blind"),
-             (3, "crypto_bignum_mulmod;is_quadratic_residue_blind"),
-             (1, "crypto_bignum_legendre;is_quadratic_residue_blind"),
+    tests = [(1, "crypto_bignum_init_set;dragonfly_get_rand_1_to_p_1"),
+             (1, "crypto_bignum_init;dragonfly_is_quadratic_residue_blind"),
+             (1, "crypto_bignum_mulmod;dragonfly_is_quadratic_residue_blind"),
+             (2, "crypto_bignum_mulmod;dragonfly_is_quadratic_residue_blind"),
+             (3, "crypto_bignum_mulmod;dragonfly_is_quadratic_residue_blind"),
+             (1, "crypto_bignum_legendre;dragonfly_is_quadratic_residue_blind"),
              (1, "crypto_bignum_init_set;sae_test_pwd_seed_ecc"),
              (1, "crypto_ec_point_compute_y_sqr;sae_test_pwd_seed_ecc"),
-             (1, "crypto_bignum_init_set;get_random_qr_qnr"),
              (1, "crypto_bignum_to_bin;sae_derive_pwe_ecc"),
              (1, "crypto_ec_point_init;sae_derive_pwe_ecc"),
              (1, "crypto_ec_point_solve_y_coord;sae_derive_pwe_ecc"),
@@ -1202,7 +1199,7 @@ def test_sae_bignum_failure(dev, apdev):
              (1, "crypto_ec_point_add;sae_derive_k_ecc"),
              (2, "crypto_ec_point_mul;sae_derive_k_ecc"),
              (1, "crypto_ec_point_to_bin;sae_derive_k_ecc"),
-             (1, "crypto_bignum_legendre;get_random_qr_qnr"),
+             (1, "crypto_bignum_legendre;dragonfly_get_random_qr_qnr"),
              (1, "sha256_prf;sae_derive_keys"),
              (1, "crypto_bignum_init;sae_derive_keys"),
              (1, "crypto_bignum_init_set;sae_parse_commit_scalar"),