mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-01 09:10:03 +00:00
State explicitly that cooked key derivation uses the export format
This is the case for all key creation in a secure element, but state it explicitly where relevant. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
f787879a14
commit
b319ed69c4
@ -511,7 +511,7 @@ psa_status_t acme_derive_key(
|
||||
* `attributes` contains the attributes of the specified key. Note that only the key type and the bit-size are guaranteed to be set.
|
||||
* `input` is a buffer of `input_length` bytes which contains the raw key stream, i.e. the data that `psa_key_derivation_output_bytes()` would return.
|
||||
* If `"memory"` property in the driver capability is true, `memory` is a data structure that the driver may use to store data between successive calls of the `"derive_key"` entry point to derive the same key. If the `"memory"` property is false or absent, the `memory` parameter is a null pointer.
|
||||
* `key_buffer` is a buffer for the output material. Its size is `key_buffer_size` bytes.
|
||||
* `key_buffer` is a buffer for the output material, in the appropriate [export format](#key-format-for-transparent-drivers) for the key type. Its size is `key_buffer_size` bytes.
|
||||
* On success, `*key_buffer_length` must contain the number of bytes written to `key_buffer`.
|
||||
|
||||
This entry point may return the following statuses:
|
||||
|
Loading…
Reference in New Issue
Block a user