From: Jouni Malinen Date: Sat, 13 Apr 2019 10:01:04 +0000 (+0300) Subject: tests: EAP-pwd compute_password_element() local failures X-Git-Tag: hostap_2_8~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f183becf03d20668f783dee51746417c9dc9a1c;p=thirdparty%2Fhostap.git tests: EAP-pwd compute_password_element() local failures Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_eap_proto.py b/tests/hwsim/test_eap_proto.py index b6b42bcc2..f8d2575f5 100644 --- a/tests/hwsim/test_eap_proto.py +++ b/tests/hwsim/test_eap_proto.py @@ -6783,10 +6783,19 @@ def test_eap_proto_pwd_errors(dev, apdev): dev[0].request("REMOVE_NETWORK all") dev[0].wait_disconnected() - funcs = ["hash_nt_password_hash;eap_pwd_perform_commit_exchange", - "crypto_hash_finish;eap_pwd_kdf"] - for func in funcs: - with fail_test(dev[0], 1, func): + funcs = [(1, "hash_nt_password_hash;eap_pwd_perform_commit_exchange"), + (1, "crypto_hash_finish;eap_pwd_kdf"), + (3, "crypto_bignum_init;compute_password_element"), + (4, "crypto_bignum_init;compute_password_element"), + (1, "crypto_bignum_init_set;compute_password_element"), + (2, "crypto_bignum_init_set;compute_password_element"), + (3, "crypto_bignum_init_set;compute_password_element"), + (1, "crypto_bignum_to_bin;compute_password_element"), + (1, "crypto_ec_point_compute_y_sqr;compute_password_element"), + (1, "crypto_ec_point_solve_y_coord;compute_password_element"), + (1, "crypto_bignum_sub;compute_password_element")] + for count, func in funcs: + with fail_test(dev[0], count, func): dev[0].connect("eap-test", key_mgmt="WPA-EAP", scan_freq="2412", eap="PWD", identity="pwd-hash", password_hex="hash:e3718ece8ab74792cbbfffd316d2d19a",