mbedtls/tests/include/test
Chris Jones 96ae73b0ea Add macro for error code addition
Adds a macro (`MBEDTLS_ERR_ADD`) to add error codes together and check that the
result will not be corrupted. This additional check is only enabled during
testing when `MBEDTLS_TEST_HOOKS` is defined.

Also includes a reference usage example in `rsa.c` where two high-level error
codes could be incorrectly added together under the right conditions. This now
ensures that when this error occurs during testing it will be correctly
reported.

Signed-off-by: Chris Jones <christopher.jones@arm.com>
2021-04-13 15:12:02 +01:00
..
drivers psa: cipher: Remove cipher_generate_iv driver entry point 2021-03-26 15:58:25 +01:00
asn1_helpers.h Move asn1_skip_integer to the asn1_helpers module 2021-02-23 20:29:38 +01:00
constant_flow.h Merge pull request #736 from mpg/cf-varpos-copy-dev-restricted 2020-08-25 14:35:55 +01:00
fake_external_rng_for_test.h Move the fake PSA external RNG to its own header and source files 2021-01-20 20:02:01 +01:00
helpers.h Add macro for error code addition 2021-04-13 15:12:02 +01:00
macros.h Don't use STATIC_ASSERT_EXPR on non-GCC-compatible compilers 2021-02-23 20:36:07 +01:00
psa_crypto_helpers.h Destroy recorded persistent keys in PSA_DONE() 2021-02-23 20:36:07 +01:00
psa_exercise_key.h Fix some C function documentation in the test framework 2021-02-23 20:36:07 +01:00
psa_helpers.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
random.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00