From fd4639aaa0bc0d98311fcca5cfaef03a9947199e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 3 Nov 2017 19:58:41 +0200 Subject: [PATCH] tests: DPP protocol - invalid Bootstrap Key in PKEX Commit-Reveal Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index ceec076f5..db00dff78 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -2600,3 +2600,13 @@ def test_dpp_proto_pkex_exchange_resp_invalid_status(dev, apdev): """DPP protocol testing - invalid Status in PKEX Exchange Response""" run_dpp_proto_pkex_resp_missing(dev, 46, "PKEX failed (peer indicated failure)") + +def test_dpp_proto_pkex_cr_req_invalid_bootstrap_key(dev, apdev): + """DPP protocol testing - invalid Bootstrap Key in PKEX Commit-Reveal Request""" + run_dpp_proto_pkex_req_missing(dev, 47, + "Peer bootstrapping key is invalid") + +def test_dpp_proto_pkex_cr_resp_invalid_bootstrap_key(dev, apdev): + """DPP protocol testing - invalid Bootstrap Key in PKEX Commit-Reveal Response""" + run_dpp_proto_pkex_resp_missing(dev, 48, + "Peer bootstrapping key is invalid")