mbedtls/tests/scripts
Gilles Peskine f8b6b503b4 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-04-05 15:19:16 +02:00
..
all-in-docker.sh
all.sh Update references to old Github organisation 2022-03-31 14:27:24 +01:00
analyze_outcomes.py Move collect_available_test_cases to check_test_cases.py 2022-01-25 13:32:25 +01:00
basic-build-test.sh
basic-in-docker.sh
check_files.py
check_names.py Merge pull request #5189 from gilles-peskine-arm/struct_reordering_2.x 2021-12-09 12:54:13 +01:00
check_test_cases.py New option to list all test cases 2022-01-25 13:32:32 +01:00
check-doxy-blocks.pl
check-generated-files.sh check-generated-files.sh -u: don't update file timestamps 2022-04-05 15:19:16 +02:00
check-python-files.sh Make mypy unconditional 2022-02-28 16:11:58 +01:00
curves.pl
depends-hashes.pl
depends-pkalgs.pl
docker_env.sh
doxygen.sh
gen_ctr_drbg.pl
gen_gcm_decrypt.pl
gen_gcm_encrypt.pl
gen_pkcs1_v21_sign_verify.pl
generate_psa_tests.py Systematically generate test cases for operation setup failure 2022-04-05 15:19:16 +02:00
generate_test_code.py
generate-afl-tests.sh
key-exchanges.pl
list_internal_identifiers.py Copy check_names.py and friends from development 2021-09-27 20:01:08 +02:00
list-identifiers.sh Copy check_names.py and friends from development 2021-09-27 20:01:08 +02:00
psa_collect_statuses.py
recursion.pl
run-test-suites.pl
scripts_path.py
set_psa_test_dependencies.py
tcp_client.pl
test_config_script.py
test_generate_test_code.py
test_psa_compliance.py Remove expected failure from test_psa_compliance 2021-11-17 14:47:56 +01:00
test_psa_constant_names.py
test_zeroize.gdb
test-ref-configs.pl Enable testing with PSA for config-mini-tls1_1 2022-01-27 11:01:24 -05:00
travis-log-failure.sh