From 84438350ae36aef80ac8d7f4bdc73553f2a9ee2d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 18 Mar 2019 11:44:00 +0200 Subject: [PATCH] tests: DPP AP+STA provisioning and connection with Brainpool curves Increase testing coverage by going through all six possible curves with full provisioning of AP and STA and connection (which includes PFS with DPP2). Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 910c5ac52..5e0b86519 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -1616,6 +1616,34 @@ def test_dpp_ap_config_p521_p521(dev, apdev): """DPP and AP configuration (P-521 + P-521)""" run_dpp_ap_config(dev, apdev, curve="P-521", conf_curve="P-521") +def test_dpp_ap_config_bp256_bp256(dev, apdev): + """DPP and AP configuration (BP-256 + BP-256)""" + run_dpp_ap_config(dev, apdev, curve="BP-256", conf_curve="BP-256") + +def test_dpp_ap_config_bp384_bp384(dev, apdev): + """DPP and AP configuration (BP-384 + BP-384)""" + run_dpp_ap_config(dev, apdev, curve="BP-384", conf_curve="BP-384") + +def test_dpp_ap_config_bp512_bp512(dev, apdev): + """DPP and AP configuration (BP-512 + BP-512)""" + run_dpp_ap_config(dev, apdev, curve="BP-512", conf_curve="BP-512") + +def test_dpp_ap_config_p256_bp256(dev, apdev): + """DPP and AP configuration (P-256 + BP-256)""" + run_dpp_ap_config(dev, apdev, curve="P-256", conf_curve="BP-256") + +def test_dpp_ap_config_bp256_p256(dev, apdev): + """DPP and AP configuration (BP-256 + P-256)""" + run_dpp_ap_config(dev, apdev, curve="BP-256", conf_curve="P-256") + +def test_dpp_ap_config_p521_bp512(dev, apdev): + """DPP and AP configuration (P-521 + BP-512)""" + run_dpp_ap_config(dev, apdev, curve="P-521", conf_curve="BP-512") + +def test_dpp_ap_config_bp512_p521(dev, apdev): + """DPP and AP configuration (BP-512 + P-521)""" + run_dpp_ap_config(dev, apdev, curve="BP-512", conf_curve="P-521") + def test_dpp_ap_config_reconfig_configurator(dev, apdev): """DPP and AP configuration with Configurator reconfiguration""" run_dpp_ap_config(dev, apdev, reconf_configurator=True)