From 3ebecc95130028fe31ebc6a5a2769d4b2ca9c97a Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Thu, 23 Mar 2023 16:52:22 +0100 Subject: [PATCH] test: disable proper key exchanges while testing accel EC algs Signed-off-by: Valerio Setti --- tests/scripts/all.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index e2caf5fe02..b8684c13d9 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -2383,17 +2383,15 @@ component_test_psa_crypto_config_accel_all_curves_except_p192 () { scripts/config.py unset MBEDTLS_ECDH_C scripts/config.py unset MBEDTLS_ECJPAKE_C - # disable key exchanges dependencies from the modules above - scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED - scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED - scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED - scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED - scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED - scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED - # Ensure also RSA_C is disabled so that the size of the public/private # keys cannot be taken from there scripts/config.py unset MBEDTLS_RSA_C + # disable key exchanges dependencies on it + scripts/config.py unset MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED + scripts/config.py unset MBEDTLS_KEY_EXCHANGE_RSA_ENABLED + scripts/config.py unset MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED + scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED + scripts/config.py unset MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED # Explicitly disable all SW implementation for elliptic curves and enable # their accelerated version (this excludes the built-in automatic inclusion