mbedtls/tests/include/test
Ronald Cron 72b25da82b tests: Add build of a PSA test driver library
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>
2021-12-06 07:50:27 +01:00
..
drivers tests: Add build of a PSA test driver library 2021-12-06 07:50:27 +01:00
asn1_helpers.h Move asn1_skip_integer to the asn1_helpers module 2021-02-23 20:29:38 +01:00
certs.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
constant_flow.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
fake_external_rng_for_test.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
helpers.h Show values when TEST_EQUAL fails 2021-10-19 22:32:44 +02:00
macros.h Show values when TEST_EQUAL fails 2021-10-19 22:32:44 +02:00
psa_crypto_helpers.h Move psa_crypto_slot_management.h out from psa_crypto_helpers.h 2021-11-03 09:35:35 +01:00
psa_exercise_key.h Remove MD2, MD4, RC4, Blowfish and XTEA 2021-06-16 10:34:25 +02:00
psa_helpers.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
random.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00