Mbed-TLS / TF-PSA-Crypto

Reference implementation of the PSA Cryptography API
Apache License 2.0
8 stars 7 forks source link

Add support for libtestdriver1 #61

Open ronald-cron-arm opened 1 year ago

ronald-cron-arm commented 1 year ago

Adapt to CMake build system the libtestdriver1 helper shell functions:

As of mbedtls:dev(bae154d76cfe0ee844bf88efc5bbe75e2088d4b0), these helper shell functions are located in all.sh that is yet to be moved to the framework. If they stay in all.sh(preferred), the 3.6 and mbedtls:dev components may need some adaptation. If the helper shell functions needs to be different for TF-PSA-Crypto and mbedtls then they need to be moved into the branch dependent components-configuration-crypto.sh file.

Demonstrate testing with libtestdriver1 by adding the equivalent of test_psa_crypto_config_accel_ecdsa.

Revisit the compilation guards in tests/src/drivers/*.c like:

if (MBEDTLS_VERSION_MAJOR == 3) && (MBEDTLS_VERSION_MINOR == 6)
#include "libtestdriver1/library/psa_crypto_hash.h"
#else
#include "libtestdriver1/tf-psa-crypto/core/psa_crypto_hash.h"
#endif
#endif

Can we do better?