mbedtls/tests
Gilles Peskine cba28a7d40 Systematically generate test cases for operation setup failure
The test suite test_suite_psa_crypto_op_fail now runs a large number
of automatically generated test cases which attempt to perform a
one-shot operation or to set up a multi-part operation with invalid
parameters. The following cases are fully covered (based on the
enumeration of valid algorithms and key types):
* An algorithm is not supported.
* The key type is not compatible with the algorithm (for operations
  that use a key).
* The algorithm is not compatible for the operation.

Some test functions allow the library to return PSA_ERROR_NOT_SUPPORTED
where the test code generator expects PSA_ERROR_INVALID_ARGUMENT or vice
versa. This may be refined in the future.

Some corner cases with algorithms combining a key agreement with a key
derivation are not handled properly. This will be fixed in follow-up
commits.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-03-16 13:54:25 +01:00
..
.jenkins
configs Add header guard around malloc(0) returning NULL implementation 2022-03-04 05:07:45 -05:00
data_files tests: data_files: Avoid symbolic links 2021-12-10 15:09:57 +01:00
docker/bionic Jinja2 prerequisite set up on the docker 2021-12-18 13:29:10 +05:30
git-scripts Update scripts to use check-names.py 2021-08-06 21:04:32 +01:00
include Merge pull request #3624 from daxtens/timeless 2022-03-15 16:43:19 +00:00
opt-testcases Run TLS 1.3 tests when MBEDTLS_USE_PSA_CRYPTO is enabled 2022-02-11 16:10:44 +01:00
scripts Systematically generate test cases for operation setup failure 2022-03-16 13:54:25 +01:00
src Merge pull request #5292 from mprse/asym_encrypt 2022-03-10 20:07:38 +01:00
suites Systematically generate test cases for operation setup failure 2022-03-16 13:54:25 +01:00
.gitignore tests: Add build of a PSA test driver library 2021-12-06 07:50:27 +01:00
CMakeLists.txt Declare modules used by generate_psa_tests.py as dependencies 2022-03-15 18:32:10 +01:00
compat-in-docker.sh Upgrade gnutls-next to 3.7.2 2021-09-02 17:31:10 +08:00
compat.sh Fix (d)tls1_2 into (d)tls12 in version options 2021-12-02 13:22:18 +00:00
context-info.sh
Descriptions.txt
make-in-docker.sh
Makefile Declare modules used by generate_psa_tests.py as dependencies 2022-03-15 18:32:10 +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 #5454 from gstrauss/cert_cb-user_data 2022-03-10 11:51:42 +01:00