From e7f289e5e968318bb8af55f2e60d3dd2a8dd01d9 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Fri, 6 Sep 2024 11:02:47 +0200 Subject: [PATCH] Use PSA crypto config in test_sha3_variations Signed-off-by: Ronald Cron --- .../scripts/components-configuration-crypto.sh | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/tests/scripts/components-configuration-crypto.sh b/tests/scripts/components-configuration-crypto.sh index e674296bd8..b77a2de5bf 100644 --- a/tests/scripts/components-configuration-crypto.sh +++ b/tests/scripts/components-configuration-crypto.sh @@ -2309,9 +2309,21 @@ component_test_sha3_variations () { msg "sha3 loop unroll variations" # define minimal config sufficient to test SHA3 - cat > include/mbedtls/mbedtls_config.h << END - #define MBEDTLS_SELF_TEST - #define MBEDTLS_SHA3_C + cat > include/mbedtls/mbedtls_config.h << END + #define MBEDTLS_AES_C + #define MBEDTLS_CTR_DRBG_C + #define MBEDTLS_ENTROPY_C + #define MBEDTLS_PSA_CRYPTO_C + #define MBEDTLS_PSA_CRYPTO_CONFIG + #define MBEDTLS_SELF_TEST +END + + cat > tf-psa-crypto/include/psa/crypto_config.h << END + #define PSA_WANT_ALG_SHA_256 1 + #define PSA_WANT_ALG_SHA3_224 1 + #define PSA_WANT_ALG_SHA3_256 1 + #define PSA_WANT_ALG_SHA3_384 1 + #define PSA_WANT_ALG_SHA3_512 1 END msg "all loops unrolled"