mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
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 <gabor.mezei@arm.com>
This commit is contained in:
@@ -1557,7 +1557,6 @@ component_test_psa_crypto_config_accel_hash () {
|
|||||||
scripts/config.py unset MBEDTLS_SHA256_C
|
scripts/config.py unset MBEDTLS_SHA256_C
|
||||||
scripts/config.py unset MBEDTLS_SHA384_C
|
scripts/config.py unset MBEDTLS_SHA384_C
|
||||||
scripts/config.py unset MBEDTLS_SHA512_C
|
scripts/config.py unset MBEDTLS_SHA512_C
|
||||||
scripts/config.py unset-all 'PSA_WANT_ALG_SHA3_*'
|
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
# -----
|
# -----
|
||||||
@@ -1597,7 +1596,6 @@ config_psa_crypto_hash_use_psa () {
|
|||||||
scripts/config.py unset MBEDTLS_SHA384_C
|
scripts/config.py unset MBEDTLS_SHA384_C
|
||||||
scripts/config.py unset MBEDTLS_SHA512_C
|
scripts/config.py unset MBEDTLS_SHA512_C
|
||||||
scripts/config.py unset MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT
|
scripts/config.py unset MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT
|
||||||
scripts/config.py unset-all 'PSA_WANT_ALG_SHA3_*'
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1680,7 +1678,6 @@ config_psa_crypto_hmac_use_psa () {
|
|||||||
# Disable also the builtin hashes since they are supported by the driver
|
# Disable also the builtin hashes since they are supported by the driver
|
||||||
# and MD module is able to perform PSA dispathing.
|
# and MD module is able to perform PSA dispathing.
|
||||||
scripts/config.py unset-all MBEDTLS_SHA
|
scripts/config.py unset-all MBEDTLS_SHA
|
||||||
scripts/config.py unset-all 'PSA_WANT_ALG_SHA3_*'
|
|
||||||
scripts/config.py unset MBEDTLS_MD5_C
|
scripts/config.py unset MBEDTLS_MD5_C
|
||||||
scripts/config.py unset MBEDTLS_RIPEMD160_C
|
scripts/config.py unset MBEDTLS_RIPEMD160_C
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user