mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-31 16:56:35 +08:00
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> |
||
|---|---|---|
| .. | ||
| build_info.h | ||
| crypto_adjust_auto_enabled.h | ||
| crypto_adjust_config_dependencies.h | ||
| crypto_adjust_config_key_pair_types.h | ||
| crypto_adjust_config_synonyms.h | ||
| crypto_builtin_composites.h | ||
| crypto_builtin_key_derivation.h | ||
| crypto_builtin_primitives.h | ||
| crypto_compat.h | ||
| crypto_config.h | ||
| crypto_driver_common.h | ||
| crypto_driver_contexts_composites.h | ||
| crypto_driver_contexts_key_derivation.h | ||
| crypto_driver_contexts_primitives.h | ||
| crypto_extra.h | ||
| crypto_legacy.h | ||
| crypto_platform.h | ||
| crypto_se_driver.h | ||
| crypto_sizes.h | ||
| crypto_struct.h | ||
| crypto_types.h | ||
| crypto_values.h | ||
| crypto.h | ||