ARM-software / psa-api

Documentation source and development of the PSA Certified API
https://arm-software.github.io/psa-api/
Other
49 stars 24 forks source link

Add extended key creation functions for non-default production methods #194

Open athoelke opened 3 months ago

athoelke commented 3 months ago

This change has been adopted from Mbed TLS: https://github.com/Mbed-TLS/mbedtls/pull/8815, with changes to make it compatible with C++ compilation.

Notes:

Fixes #167

athoelke commented 3 months ago

For now - marked this as a draft PR. Some rework of the API is required.

It turns out that the variable-sized structure definition is not strictly legal in C++, and inclusion and use from C++ is an expected use case for the Crypto API.

athoelke commented 2 months ago

Updated in line with the proposal in https://github.com/ARM-software/psa-api/issues/167#issuecomment-2104602992.

This is force-pushed to remove the uneccessary changes to the buffer parameter conventions. The changes between the earlier API in the PR are visible in the single commit https://github.com/ARM-software/psa-api/pull/194/commits/db30ef60edd97497d0766ad789dac5ee2af72c08.

athoelke commented 2 months ago

To support migration for applications using the beta version of this API in Mbed TLS, we need to consider if we can use a different function name for these new APIs.

athoelke commented 2 months ago

Some ideas (including considered and discarded ones) for alternative function names:

Rejected ideas