From 84f4ff1dd3cbc2903b793bd647cb5a6fc6935ba7 Mon Sep 17 00:00:00 2001 From: Przemek Stekiel Date: Tue, 4 Jul 2023 12:35:31 +0200 Subject: [PATCH] Minor adaptations after ffdh was enabled for tls1.3 Signed-off-by: Przemek Stekiel --- tests/scripts/all.sh | 12 ++++++------ tests/scripts/analyze_outcomes.py | 6 ++---- tests/suites/test_suite_psa_crypto_metadata.function | 2 +- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index d7875cee2..703594c19 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -2254,9 +2254,6 @@ component_test_psa_crypto_config_accel_ecdh () { component_test_psa_crypto_config_accel_ffdh () { msg "build: MBEDTLS_PSA_CRYPTO_CONFIG with accelerated FFDH" - # Start with full - scripts/config.py full - # Algorithms and key types to accelerate loc_accel_list="ALG_FFDH KEY_TYPE_DH_KEY_PAIR KEY_TYPE_DH_PUBLIC_KEY" @@ -2264,7 +2261,7 @@ component_test_psa_crypto_config_accel_ffdh () { # --------- # Start from default config (no TLS 1.3, no USE_PSA) - helper_libtestdriver1_adjust_config "default" + helper_libtestdriver1_adjust_config "full" # Disable the module that's accelerated scripts/config.py unset MBEDTLS_DHM_C @@ -2288,6 +2285,9 @@ component_test_psa_crypto_config_accel_ffdh () { msg "test: MBEDTLS_PSA_CRYPTO_CONFIG with accelerated FFDH" make test + + msg "ssl-opt: MBEDTLS_PSA_CRYPTO_CONFIG with accelerated FFDH alg" + tests/ssl-opt.sh -f "ffdh" } component_test_psa_crypto_config_reference_ffdh () { @@ -2307,7 +2307,7 @@ component_test_psa_crypto_config_reference_ffdh () { # Disable things that are not supported scripts/config.py unset MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED scripts/config.py unset MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED - scripts/config.py unset MBEDTLS_DHM_C + scripts/config.py unset MBEDTLS_PSA_CRYPTO_SE_C make @@ -2315,7 +2315,7 @@ component_test_psa_crypto_config_reference_ffdh () { make test msg "ssl-opt: MBEDTLS_PSA_CRYPTO_CONFIG with non-accelerated FFDH alg + USE_PSA" - tests/ssl-opt.sh -f "FFDH" + tests/ssl-opt.sh -f "ffdh" } component_test_psa_crypto_config_accel_pake() { diff --git a/tests/scripts/analyze_outcomes.py b/tests/scripts/analyze_outcomes.py index 4a8ddf5fb..2fca75105 100755 --- a/tests/scripts/analyze_outcomes.py +++ b/tests/scripts/analyze_outcomes.py @@ -333,10 +333,8 @@ TASKS = { 'args': { 'component_ref': 'test_psa_crypto_config_reference_ffdh', 'component_driver': 'test_psa_crypto_config_accel_ffdh', - 'ignored_suites': [ - ], - 'ignored_tests': { - } + 'ignored_suites': ['dhm'], + 'ignored_tests': {'test_suite_pkparse': ['DH group family: RFC 7919']} } }, } diff --git a/tests/suites/test_suite_psa_crypto_metadata.function b/tests/suites/test_suite_psa_crypto_metadata.function index b28ed2a75..b51f2a28b 100644 --- a/tests/suites/test_suite_psa_crypto_metadata.function +++ b/tests/suites/test_suite_psa_crypto_metadata.function @@ -699,7 +699,7 @@ void ecc_key_family(int curve_arg) } /* END_CASE */ -/* BEGIN_CASE depends_on:MBEDTLS_DHM_C */ +/* BEGIN_CASE depends_on:PSA_KEY_TYPE_DH_PUBLIC_KEY:PSA_KEY_TYPE_DH_KEY_PAIR */ void dh_key_family(int group_arg) { psa_dh_family_t group = group_arg;