1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Remove MBEDTLS_SHA3_C config option

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei
2025-04-23 17:04:18 +02:00
parent 591d854b1a
commit 4aa974f7c7
3 changed files with 7 additions and 7 deletions

View File

@ -290,7 +290,10 @@ const selftest_t selftests[] =
#if defined(MBEDTLS_SHA512_C) #if defined(MBEDTLS_SHA512_C)
{ "sha512", mbedtls_sha512_self_test }, { "sha512", mbedtls_sha512_self_test },
#endif #endif
#if defined(MBEDTLS_SHA3_C) #if defined(PSA_WANT_ALG_SHA3_224) || \
defined(PSA_WANT_ALG_SHA3_256) || \
defined(PSA_WANT_ALG_SHA3_384) || \
defined(PSA_WANT_ALG_SHA3_512)
{ "sha3", mbedtls_sha3_self_test }, { "sha3", mbedtls_sha3_self_test },
#endif #endif
#if defined(MBEDTLS_DES_C) #if defined(MBEDTLS_DES_C)

View File

@ -1557,7 +1557,7 @@ 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 MBEDTLS_SHA3_C scripts/config.py unset-all 'PSA_WANT_ALG_SHA3_*'
# Build # Build
# ----- # -----
@ -1597,7 +1597,7 @@ 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 MBEDTLS_SHA3_C scripts/config.py unset-all 'PSA_WANT_ALG_SHA3_*'
fi fi
} }
@ -1680,6 +1680,7 @@ 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

View File

@ -348,10 +348,6 @@ REVERSE_DEPENDENCIES = {
'MBEDTLS_SHA512_C': ['MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT', 'MBEDTLS_SHA512_C': ['MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT',
'MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY', 'MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY',
'PSA_WANT_ALG_SHA_512'], 'PSA_WANT_ALG_SHA_512'],
'MBEDTLS_SHA3_C' : ['PSA_WANT_ALG_SHA3_224',
'PSA_WANT_ALG_SHA3_256',
'PSA_WANT_ALG_SHA3_384',
'PSA_WANT_ALG_SHA3_512'],
'PSA_WANT_ALG_ECB_NO_PADDING' : ['MBEDTLS_NIST_KW_C'], 'PSA_WANT_ALG_ECB_NO_PADDING' : ['MBEDTLS_NIST_KW_C'],
} }