mbedtls/tf-psa-crypto/core
Gilles Peskine f9408282e8 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-05 15:49:22 +02:00
..
.gitignore
alignment.h
CMakeLists.txt
common.h
psa_crypto_aead.c
psa_crypto_aead.h
psa_crypto_cipher.c
psa_crypto_cipher.h
psa_crypto_client.c
psa_crypto_core_common.h
psa_crypto_core.h Implement psa_generate_key_custom 2024-08-05 15:49:22 +02:00
psa_crypto_driver_wrappers_no_static.h
psa_crypto_ecp.c
psa_crypto_ecp.h
psa_crypto_ffdh.c
psa_crypto_ffdh.h
psa_crypto_hash.c
psa_crypto_hash.h
psa_crypto_invasive.h
psa_crypto_its.h
psa_crypto_mac.c
psa_crypto_mac.h
psa_crypto_pake.c
psa_crypto_pake.h
psa_crypto_random_impl.h Replace MBEDTLS_MD_CAN_SHA256 with PSA_WANT_ALG_SHA_256 2024-07-11 11:13:35 +03:00
psa_crypto_rsa.c Implement psa_generate_key_custom 2024-08-05 15:49:22 +02:00
psa_crypto_rsa.h Implement psa_generate_key_custom 2024-08-05 15:49:22 +02:00
psa_crypto_se.c
psa_crypto_se.h
psa_crypto_slot_management.c
psa_crypto_slot_management.h
psa_crypto_storage.c
psa_crypto_storage.h
psa_crypto.c Implement psa_generate_key_custom 2024-08-05 15:49:22 +02:00
psa_its_file.c
psa_util_internal.h
psa_util.c Merge pull request #9384 from eleuzi01/replace-util-have-ecdsa 2024-07-31 15:29:51 +00:00