Skip to content

Commit bc9c7cd

Browse files
Do not disable PSA_WANT_SHA3 macros when driver accel is used
The SW implementation is guarded with the `MBEDTLS_PSA_BUILTIN_ALG_SHA3` macros and not enabled when driver accelaration is set. So disabling the `PSA_WANT` macros is not needed. Signed-off-by: Gabor Mezei <[email protected]>
1 parent c0f58fb commit bc9c7cd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/scripts/components-configuration-crypto.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,6 @@ component_test_psa_crypto_config_accel_hash () {
15571557
scripts/config.py unset MBEDTLS_SHA256_C
15581558
scripts/config.py unset MBEDTLS_SHA384_C
15591559
scripts/config.py unset MBEDTLS_SHA512_C
1560-
scripts/config.py unset-all 'PSA_WANT_ALG_SHA3_*'
15611560

15621561
# Build
15631562
# -----
@@ -1597,7 +1596,6 @@ config_psa_crypto_hash_use_psa () {
15971596
scripts/config.py unset MBEDTLS_SHA384_C
15981597
scripts/config.py unset MBEDTLS_SHA512_C
15991598
scripts/config.py unset MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT
1600-
scripts/config.py unset-all 'PSA_WANT_ALG_SHA3_*'
16011599
fi
16021600
}
16031601

@@ -1680,7 +1678,6 @@ config_psa_crypto_hmac_use_psa () {
16801678
# Disable also the builtin hashes since they are supported by the driver
16811679
# and MD module is able to perform PSA dispathing.
16821680
scripts/config.py unset-all MBEDTLS_SHA
1683-
scripts/config.py unset-all 'PSA_WANT_ALG_SHA3_*'
16841681
scripts/config.py unset MBEDTLS_MD5_C
16851682
scripts/config.py unset MBEDTLS_RIPEMD160_C
16861683
fi

0 commit comments

Comments
 (0)