Gilles Peskine 9ffffab4d6 Fix edge case with half-supported ECDSA
ECDSA has two variants: deterministic (PSA_ALG_DETERMINISTIC_ECDSA) and
randomized (PSA_ALG_ECDSA). The two variants are different for signature but
identical for verification. Mbed TLS accepts either variant as the algorithm
parameter for verification even when only the other variant is supported,
so we need to handle this as a special case when generating not-supported
test cases.

In this commit:

* Automatically generated not-supported test cases for ECDSA now require
  both variants to be disabled.
* Add manually written not-supported test cases for the signature
  operation when exactly one variant is supported.
* Add manually written positive test cases for the verification
  operation when exactly one variant is supported.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-04-19 19:33:29 +02:00
..
__init__.py Documentation typo 2022-10-14 15:34:06 +02:00
asymmetric_key_data.py Add test data for secp192r1 2024-01-09 09:53:54 +01:00
build_tree.py Update headers 2023-11-03 12:04:52 +00:00
c_build_helper.py Update headers 2023-11-03 12:04:52 +00:00
c_parsing_helper.py Fix parsing of C line comments 2024-01-08 21:06:47 +01:00
c_wrapper_generator.py Add review exception warning 2024-01-04 17:28:59 +01:00
crypto_data_tests.py Update new license headers 2023-11-13 11:45:12 +00:00
crypto_knowledge.py Add test data for secp192r1 2024-01-09 09:53:54 +01:00
macro_collector.py Update headers 2023-11-03 12:04:52 +00:00
psa_information.py Fix edge case with half-supported ECDSA 2024-04-19 19:33:29 +02:00
psa_storage.py Update headers 2023-11-03 12:04:52 +00:00
test_case.py TestCase: add mechanism to skip a test case 2024-04-11 22:00:55 +02:00
test_data_generation.py Update headers 2023-11-03 12:04:52 +00:00
typing_util.py Update headers 2023-11-03 12:04:52 +00:00