mbedtls/tests
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
..
.jenkins
configs
data_files Merge pull request #3698 from darrenkrahn/development 2021-01-17 18:06:18 +00:00
docker/bionic
git-scripts
include/test Add macro for error code addition 2021-04-13 15:12:02 +01:00
scripts Merge pull request #4306 from daverodgman/fix_mps_trace_macros 2021-04-07 16:07:50 +01:00
src Add macro for error code addition 2021-04-13 15:12:02 +01:00
suites Add macro for error code addition 2021-04-13 15:12:02 +01:00
.gitignore
CMakeLists.txt MPS Reader Tests: Test basic feed-get-commit-reclaim cycle 2021-03-29 14:19:32 +01:00
compat-in-docker.sh
compat.sh
context-info.sh Merge pull request #3614 from gilles-peskine-arm/ssl-opt-gnutls-printf-development 2020-11-04 17:55:42 +01:00
Descriptions.txt
make-in-docker.sh
Makefile Adding printf format warning flags to makefiles 2021-03-10 17:00:32 +00:00
ssl-opt-in-docker.sh
ssl-opt.sh Merge pull request #3615 from gilles-peskine-arm/ssl-opt-less-grep-development 2021-04-06 11:05:34 +02:00