mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-19 10:33:05 -05:00
tests: EAP-pwd compute_password_element() local failures
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b061b9e943
commit
4f183becf0
@ -6783,10 +6783,19 @@ def test_eap_proto_pwd_errors(dev, apdev):
|
|||||||
dev[0].request("REMOVE_NETWORK all")
|
dev[0].request("REMOVE_NETWORK all")
|
||||||
dev[0].wait_disconnected()
|
dev[0].wait_disconnected()
|
||||||
|
|
||||||
funcs = ["hash_nt_password_hash;eap_pwd_perform_commit_exchange",
|
funcs = [(1, "hash_nt_password_hash;eap_pwd_perform_commit_exchange"),
|
||||||
"crypto_hash_finish;eap_pwd_kdf"]
|
(1, "crypto_hash_finish;eap_pwd_kdf"),
|
||||||
for func in funcs:
|
(3, "crypto_bignum_init;compute_password_element"),
|
||||||
with fail_test(dev[0], 1, func):
|
(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",
|
dev[0].connect("eap-test", key_mgmt="WPA-EAP", scan_freq="2412",
|
||||||
eap="PWD", identity="pwd-hash",
|
eap="PWD", identity="pwd-hash",
|
||||||
password_hex="hash:e3718ece8ab74792cbbfffd316d2d19a",
|
password_hex="hash:e3718ece8ab74792cbbfffd316d2d19a",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user