Gilles Peskine f36d785188 Implement psa_generate_key_custom
Implement `psa_generate_key_custom()` and
`psa_key_derivation_output_key_custom()`. These functions replace
`psa_generate_key_ext()` and `psa_key_derivation_output_key_ext()`.
They have the same functionality, but a slightly different interface:
the `ext` functions use a structure with a flexible array member to pass
variable-length data, while the `custom` functions use a separate parameter.

Keep the `ext` functions for backward compatibility with Mbed TLS 3.6.0.
But make them a thin wrapper around the new `custom` functions.

Duplicate the test code and data. The test cases have to be duplicated
anyway, and the test functions are individually more readable this way.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-08-06 13:12:06 +02: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: define feature macros for DH keys 2024-01-17 11:47:44 +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 In attributes, keep track of slot number through a dedicated field 2024-02-28 01:49:45 +01: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 crypto_sizes: adjust PSA_VENDOR_FFDH_MAX_KEY_BITS based on the supported groups 2024-01-17 15:56:30 +01:00
crypto_struct.h Implement psa_generate_key_custom 2024-08-06 13:12:06 +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 Implement psa_generate_key_custom 2024-08-06 13:12:06 +02:00