Gilles Peskine bc3f917fb3 crypto_config.h: Don't list mechanisms that are not implemented
Don't list mechanisms that are not implemented in
`include/psa/crypto_config.h`, even commented out. Uncommenting them
wouldn't help anyway: they don't work. Having them listed, even commented
out, causes `find_dependencies_not_implemented()` in `psa_test_case.py` to
consider those mechanisms to be implemented, and thus causes
`generate_psa_tests.py` to generate test cases that cannot be executed.

The affected mechanisms are:

* `PSA_ALG_CBC_MAC` (`PSA_WANT_ALG_CBC_MAC`)
* `PSA_ALG_XTS` (`PSA_WANT_ALG_XTS`)
* `PSA_ECC_FAMILY_SECP_K1` 224-bit (`PSA_WANT_ECC_SECP_K1_224`)

Also remove the affected mechanisms from configuration adjustment files,
since that is code that can never be triggered.

There were already no generated test cases for SECP224K1 because
`PSA_WANT_ECC_SECP_K1_224` was already detected as a dependency that cannot
be implemented, because that is not a valid size: PSA defines SECP224K1 as
225-bit, and `crypto_knowledge.py` follows suite, so `generate_psa_tests.py`
saw `PSA_WANT_ECC_SECP_K1_225` in its enumeration but skipped it because it
was never mentioned in `crypto_config.h`.

This causes generated PSA tests to no longer include positive test cases for
`PSA_ALG_CBC_MAC` and `PSA_ALG_XTS`.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-12-24 20:03:29 +01:00
..
build_info.h Header updates 2023-11-03 12:21:36 +00:00
crypto_adjust_auto_enabled.h Tweak wording 2024-05-29 09:33:04 +02:00
crypto_adjust_config_dependencies.h Tweak wording 2024-05-29 09:33:04 +02:00
crypto_adjust_config_key_pair_types.h Tweak wording 2024-05-29 09:33:04 +02:00
crypto_adjust_config_synonyms.h Tweak wording 2024-05-29 09:33:04 +02:00
crypto_builtin_composites.h crypto_builtin_composites: add missing guards for includes 2023-12-14 18:08:14 +01:00
crypto_builtin_key_derivation.h Header updates 2023-11-03 12:21:36 +00:00
crypto_builtin_primitives.h Header updates 2023-11-03 12:21:36 +00:00
crypto_compat.h Remove domain parameters from the public API 2024-02-26 08:50:53 +01:00
crypto_config.h crypto_config.h: Don't list mechanisms that are not implemented 2024-12-24 20:03:29 +01:00
crypto_driver_common.h Header updates 2023-11-03 12:21:36 +00:00
crypto_driver_contexts_composites.h Header updates 2023-11-03 12:21:36 +00:00
crypto_driver_contexts_key_derivation.h Header updates 2023-11-03 12:21:36 +00:00
crypto_driver_contexts_primitives.h Header updates 2023-11-03 12:21:36 +00:00
crypto_extra.h psa: move definition of MBEDTLS_PSA_KEY_BUFFER_MAX_SIZE 2024-10-22 13:31:19 +02:00
crypto_legacy.h Header updates 2023-11-03 12:21:36 +00:00
crypto_platform.h Add a client view of the multipart contexts 2024-01-22 11:39:36 +00:00
crypto_se_driver.h Header updates 2023-11-03 12:21:36 +00:00
crypto_sizes.h psa: fix some macro definition 2024-10-22 13:31:19 +02:00
crypto_struct.h Match spacing in pointer types in documentation with the code style 2024-08-06 13:13:05 +02:00
crypto_types.h Implement psa_generate_key_custom 2024-08-06 13:12:06 +02:00
crypto_values.h Fix copypasta 2024-02-15 17:15:29 +01:00
crypto.h Merge pull request #9403 from gilles-peskine-arm/psa-keystore-dynamic-prep-3.6 2024-08-09 08:00:03 +00:00