mbedtls/tf-psa-crypto
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
..
core Implement psa_generate_key_custom 2024-08-05 15:49:22 +02:00
drivers Merge pull request #9384 from eleuzi01/replace-util-have-ecdsa 2024-07-31 15:29:51 +00:00
include Implement psa_generate_key_custom 2024-08-05 15:49:22 +02:00
programs Add programs directory in tf-psa-crypto directory 2024-07-19 10:07:27 +02:00
tests Implement psa_generate_key_custom 2024-08-05 15:49:22 +02:00
.gitignore
CMakeLists.txt Adjust build systems 2024-07-10 08:07:38 +02:00