]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: DPP protocol testing - invalid Encrypted Key in PKEX Exchange
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 2 Nov 2017 22:49:35 +0000 (00:49 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 3 Nov 2017 17:59:46 +0000 (19:59 +0200)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_dpp.py

index 7beffa31fb2330fa3adcaed9c8c55f9ac8345954..7d00d41246a84462172266f6b48eced31a211ce5 100644 (file)
@@ -2485,3 +2485,13 @@ def test_dpp_proto_pkex_cr_resp_no_r_auth_tag(dev, apdev):
 def test_dpp_proto_pkex_cr_resp_no_wrapped_data(dev, apdev):
     """DPP protocol testing - no Wrapped Data in PKEX Commit-Reveal Response"""
     run_dpp_proto_pkex_resp_missing(dev, 43, "Missing or invalid required Wrapped Data attribute")
+
+def test_dpp_proto_pkex_exchange_req_invalid_encrypted_key(dev, apdev):
+    """DPP protocol testing - invalid Encrypted Key in PKEX Exchange Request"""
+    run_dpp_proto_pkex_req_missing(dev, 44,
+                                   "Invalid Encrypted Key value")
+
+def test_dpp_proto_pkex_exchange_resp_invalid_encrypted_key(dev, apdev):
+    """DPP protocol testing - invalid Encrypted Key in PKEX Exchange Response"""
+    run_dpp_proto_pkex_resp_missing(dev, 45,
+                                    "Invalid Encrypted Key value")