mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-29 09:21:19 +00:00
72b25da82b
PR #3959 has proven that by adding a prefix (LIBTESTDRIVER1/libtestdriver1_ in this commit) to all MBEDTLS/PSA_* and mbedtls/psa_* symbols of a copy of the Mbed TLS library, we can build a library that can be linked with the Mbed TLS library. This commit leverages this to build a PSA test driver library based on the Mbed TLS library code. The cryptographic features supported by the test library are defined by: . a minimal configuration (in the sense of config.h), see config_test_driver.h . PSA_WANT_* and PSA_ACCEL_* defined macros. The PSA_WANT_* macros have to be the same as the ones used to build the Mbed TLS library the test driver library is supposed to be linked to as the PSA_WANT_* macros are used in the definition of structures and macros that are shared by the PSA crypto core, Mbed TLS drivers and the driver test library. The PSA_ACCEL_* macros are intended to define the cryptographic features that have to be removed from the Mbed TLS library and thus supported by the test library in test scenarios. The PSA_ACCEL_* macros to build the test library are thus mirrored from the ones to build the Mbed TLS library by extended the crypto_config.h: see crypto_config_test_driver_entension.h. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
23 lines
396 B
Plaintext
23 lines
396 B
Plaintext
*.sln
|
|
*.vcxproj
|
|
|
|
# Generated source files
|
|
/suites/*.generated.data
|
|
/suites/test_suite_psa_crypto_storage_format.v[0-9]*.data
|
|
/suites/test_suite_psa_crypto_storage_format.current.data
|
|
|
|
*.log
|
|
/test_suite*
|
|
data_files/mpi_write
|
|
data_files/hmac_drbg_seed
|
|
data_files/ctr_drbg_seed
|
|
data_files/entropy_seed
|
|
|
|
include/test/instrument_record_status.h
|
|
|
|
src/*.o
|
|
src/drivers/*.o
|
|
src/libmbed*
|
|
|
|
libtestdriver1/*
|