mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
all.sh: disable legacy hash support in test_psa_crypto_config_accel_hmac()
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
@@ -3661,6 +3661,17 @@ config_psa_crypto_hmac_use_psa () {
|
|||||||
# start with config full for maximum coverage (also enables USE_PSA)
|
# start with config full for maximum coverage (also enables USE_PSA)
|
||||||
helper_libtestdriver1_adjust_config "full"
|
helper_libtestdriver1_adjust_config "full"
|
||||||
|
|
||||||
|
if [ "$driver_only" -eq 1 ]; then
|
||||||
|
# Disable MD_C in order to disable the builtin support for HMAC. MD_LIGHT
|
||||||
|
# is still enabled though (for ENTROPY_C among others).
|
||||||
|
scripts/config.py unset MBEDTLS_MD_C
|
||||||
|
# Disable also the builtin hashes since they are supported by the driver
|
||||||
|
# and MD module is able to perform PSA dispathing.
|
||||||
|
scripts/config.py unset-all MBEDTLS_SHA
|
||||||
|
scripts/config.py unset MBEDTLS_MD5_C
|
||||||
|
scripts/config.py unset MBEDTLS_RIPEMD160_C
|
||||||
|
fi
|
||||||
|
|
||||||
# Direct dependencies of MD_C. We disable them also in the reference
|
# Direct dependencies of MD_C. We disable them also in the reference
|
||||||
# component to work with the same set of features.
|
# component to work with the same set of features.
|
||||||
scripts/config.py unset MBEDTLS_PKCS7_C
|
scripts/config.py unset MBEDTLS_PKCS7_C
|
||||||
@@ -3685,10 +3696,6 @@ component_test_psa_crypto_config_accel_hmac() {
|
|||||||
|
|
||||||
config_psa_crypto_hmac_use_psa 1
|
config_psa_crypto_hmac_use_psa 1
|
||||||
|
|
||||||
# Disable MD_C in order to disable the builtin support for HMAC. MD_LIGHT
|
|
||||||
# is still enabled though.
|
|
||||||
scripts/config.py unset MBEDTLS_MD_C
|
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
# -----
|
# -----
|
||||||
|
|
||||||
|
@@ -246,6 +246,9 @@ KNOWN_TASKS = {
|
|||||||
'component_ref': 'test_psa_crypto_config_reference_hmac',
|
'component_ref': 'test_psa_crypto_config_reference_hmac',
|
||||||
'component_driver': 'test_psa_crypto_config_accel_hmac',
|
'component_driver': 'test_psa_crypto_config_accel_hmac',
|
||||||
'ignored_suites': [
|
'ignored_suites': [
|
||||||
|
# These suites require legacy hash support, which is disabled
|
||||||
|
# in the accelerate component.
|
||||||
|
'shax', 'mdx',
|
||||||
# This suite tests builtins directly, but these are missing
|
# This suite tests builtins directly, but these are missing
|
||||||
# in the accelerated case.
|
# in the accelerated case.
|
||||||
'psa_crypto_low_hash.generated',
|
'psa_crypto_low_hash.generated',
|
||||||
|
Reference in New Issue
Block a user