diff options
author | Gabor Mezei <gabor.mezei@arm.com> | 2024-06-13 12:57:00 +0200 |
---|---|---|
committer | Gabor Mezei <gabor.mezei@arm.com> | 2024-06-13 13:07:53 +0200 |
commit | 5bc887c64444c244300f17710a5d6a936ae5a3a2 (patch) | |
tree | 46f41d5c00ecbec1489a8a4635d06bc7656b7006 /tests | |
parent | 797991dd517141d0c0e45fc40bd481f89f330184 (diff) | |
download | mbedtls-5bc887c64444c244300f17710a5d6a936ae5a3a2.zip mbedtls-5bc887c64444c244300f17710a5d6a936ae5a3a2.tar.gz mbedtls-5bc887c64444c244300f17710a5d6a936ae5a3a2.tar.bz2 |
Update `full_no_cipher_no_psa_crypto` test component
With replacing the `MD_CAN` macros with `PSA_WANT` counterparts
the pure legacy test cases are needing the config options
from `crypto_config.h`.
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/scripts/all.sh | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 35b3ff9..6c2b428 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -1711,13 +1711,10 @@ component_test_crypto_full_md_light_only () { make test } -component_test_full_no_cipher_no_psa_crypto () { +component_test_full_no_cipher_with_legacy () { msg "build: full no CIPHER no PSA_CRYPTO_C" scripts/config.py full scripts/config.py unset MBEDTLS_CIPHER_C - # Don't pull in cipher via PSA mechanisms - # (currently ignored anyway because we completely disable PSA) - scripts/config.py unset MBEDTLS_PSA_CRYPTO_CONFIG # Disable features that depend on CIPHER_C scripts/config.py unset MBEDTLS_CMAC_C scripts/config.py unset MBEDTLS_NIST_KW_C @@ -1725,6 +1722,21 @@ component_test_full_no_cipher_no_psa_crypto () { scripts/config.py unset MBEDTLS_PSA_CRYPTO_CLIENT scripts/config.py unset MBEDTLS_SSL_TLS_C scripts/config.py unset MBEDTLS_SSL_TICKET_C + # The built-in implementation of the following algs/key-types depends + # on CIPHER_C so we disable them. + # This does not hold for KEY_TYPE_CHACHA20 and ALG_CHACHA20_POLY1305 + # so we keep them enabled. + scripts/config.py -f $CRYPTO_CONFIG_H unset PSA_WANT_ALG_CCM_STAR_NO_TAG + scripts/config.py -f $CRYPTO_CONFIG_H unset PSA_WANT_ALG_CMAC + scripts/config.py -f $CRYPTO_CONFIG_H unset PSA_WANT_ALG_CBC_NO_PADDING + scripts/config.py -f $CRYPTO_CONFIG_H unset PSA_WANT_ALG_CBC_PKCS7 + scripts/config.py -f $CRYPTO_CONFIG_H unset PSA_WANT_ALG_CFB + scripts/config.py -f $CRYPTO_CONFIG_H unset PSA_WANT_ALG_CTR + scripts/config.py -f $CRYPTO_CONFIG_H unset PSA_WANT_ALG_ECB_NO_PADDING + scripts/config.py -f $CRYPTO_CONFIG_H unset PSA_WANT_ALG_OFB + scripts/config.py -f $CRYPTO_CONFIG_H unset PSA_WANT_ALG_PBKDF2_AES_CMAC_PRF_128 + scripts/config.py -f $CRYPTO_CONFIG_H unset PSA_WANT_ALG_STREAM_CIPHER + scripts/config.py -f $CRYPTO_CONFIG_H unset PSA_WANT_KEY_TYPE_DESPSA_WANT_ALG_CMAC # Disable features that depend on PSA_CRYPTO_C scripts/config.py unset MBEDTLS_PSA_CRYPTO_SE_C scripts/config.py unset MBEDTLS_PSA_CRYPTO_STORAGE_C |