mbedtls/tests
Manuel Pégourié-Gonnard f155ab9a91 Abort on errors when we should
We're not strictly required to abort, but at least to leave the context
is an invalid state. For "late" functions like input() and output(),
calling abort() is the easiest way to do that. Do it systematically for
input() and output() by using a wrapper. psa_pake_get_implicit_key() was
already doing it. For "early" function, we can just leave the operation
in its current state which is already invalid.

Restore previous tests about that. Not adding systematic tests, though,
just test the two functions that are the most important, and more likely
to return errors.

Since we now abort in more cases, we need to make sure we don't
invalidate the operation that's going to be re-used later in the test.
For that reason, use a copy of the operation for calls to input() and
output() that are expected to return errors.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2022-10-13 13:20:31 +02:00
..
.jenkins
configs Remove use_psa_crypto in test scripts 2022-03-22 15:13:35 +08:00
data_files Finalize client side code for psk 2022-09-23 01:48:26 +00:00
docker/bionic Jinja2 prerequisite set up on the docker 2021-12-18 13:29:10 +05:30
git-scripts Fix typographical errors in .md files found by cspell 2022-07-29 13:44:01 +01:00
include Correct copyright and license in crypto_spe.h 2022-09-12 17:57:32 +01:00
opt-testcases Fix the description of psk client cases 2022-09-28 07:50:13 +00:00
scripts Merge pull request #6083 from tom-cosgrove-arm/issue-6015-montgomery-multiplication 2022-09-30 10:35:21 +02:00
src Make legacy_or_psa.h public. 2022-09-16 12:02:48 +02:00
suites Abort on errors when we should 2022-10-13 13:20:31 +02:00
.gitignore tests: Add build of a PSA test driver library 2021-12-06 07:50:27 +01:00
CMakeLists.txt Add test_generation.py dependency in builds 2022-08-25 16:18:22 +01:00
compat-in-docker.sh Upgrade gnutls-next to 3.7.2 2021-09-02 17:31:10 +08:00
compat.sh Add comment in compat.sh about callers 2022-04-14 09:21:56 +02:00
context-info.sh Modifies tests in context-info.sh 2021-06-16 16:19:53 +01:00
Descriptions.txt Revert "Remove tests that depend on TLS or X.509" 2020-03-19 14:17:54 +01:00
make-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
Makefile Add test_generation.py dependency in builds 2022-08-25 16:18:22 +01:00
ssl-opt-in-docker.sh Upgrade gnutls-next to 3.7.2 2021-09-02 17:31:10 +08:00
ssl-opt.sh Merge pull request #6194 from xkqian/tls13_add_psk_client_cases 2022-09-28 17:08:06 +02:00