mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
test suites: Refactored component_test_ccm_aes_sha256.
This commit moves the tf-psa-crypto configuration options for this test to `crypto-config-ccm-aes-sha256.h`. A blank MbedTLS configuration file is now used for the library side. Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
@ -2165,12 +2165,8 @@ component_test_aead_only_ccm () {
|
||||
component_test_ccm_aes_sha256 () {
|
||||
msg "build: CCM + AES + SHA256 configuration"
|
||||
|
||||
cp "tf-psa-crypto/tests/configs/config_test_driver.h" "$CONFIG_H"
|
||||
head -n -1 configs/crypto-config-ccm-aes-sha256.h > "$CRYPTO_CONFIG_H"
|
||||
echo "#define MBEDTLS_PSA_CRYPTO_C" >> "$CRYPTO_CONFIG_H"
|
||||
echo "#define MBEDTLS_CTR_DRBG_C" >> "$CRYPTO_CONFIG_H"
|
||||
echo "#define MBEDTLS_ENTROPY_C" >> "$CRYPTO_CONFIG_H"
|
||||
echo "#endif /* PSA_CRYPTO_CONFIG_H */" >> "$CRYPTO_CONFIG_H"
|
||||
# Setting a blank config disables everyhing in the library side.
|
||||
echo '#define MBEDTLS_CONFIG_H ' >"$CONFIG_H"
|
||||
make
|
||||
msg "test: CCM + AES + SHA256 configuration"
|
||||
make test
|
||||
|
Reference in New Issue
Block a user