mbedtls/scripts/mbedtls_dev
Gilles Peskine d6d2d6a7d7 Use InputsForTest in generate_psa_tests
In generate_psa_tests, use InputsForTest rather than PSAMacroCollector
to gather values. This way, the enumeration of values to test includes
values used in metadata tests in addition to constructors parsed from
header files. This allows greater coverage of values built from
constructors with arguments. This doesn't make a difference yet, but
it will once algorithm constructors with arguments are supported in
generate_psa_tests.

Make the injection of numerical values optional. They are useful for
test_psa_constant_names, so keep them there. Don't use them for
not-supported tests: they might make sense, but the current code
wouldn't work since it doesn't know how to make up fake key material
or what dependencies to generate. Don't use them for storage tests:
they only make sense for supported values.

Don't inject 'PSA_SUCCESS': that's superfluous.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-05-25 19:31:21 +02:00
..
asymmetric_key_data.py Add key material for twisted Edwards curves 2021-03-29 15:08:10 +02:00
c_build_helper.py Minor documentation fixes 2021-01-19 21:23:11 +01:00
crypto_knowledge.py Consistently describe Ed25519 as a 255-bit curve 2021-03-29 14:55:44 +02:00
macro_collector.py Use InputsForTest in generate_psa_tests 2021-05-25 19:31:21 +02:00
psa_storage.py Obtain the values of expressions by running C code 2021-03-10 23:22:35 +01:00
test_case.py Do not require typing_extensions at runtime 2021-02-17 14:58:29 +01:00
typing_util.py Do not require typing_extensions at runtime 2021-02-17 14:58:29 +01:00