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
docker/bionic
git-scripts
include Merge pull request #3624 from daxtens/timeless 2022-03-15 16:43:19 +00:00
opt-testcases
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
CMakeLists.txt Declare modules used by generate_psa_tests.py as dependencies 2022-03-15 18:32:10 +01:00
compat-in-docker.sh
compat.sh
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
ssl-opt.sh Merge pull request #5454 from gstrauss/cert_cb-user_data 2022-03-10 11:51:42 +01:00