nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ cracen_derive_key()

psa_status_t cracen_derive_key ( const psa_key_attributes_t * attributes,
const uint8_t * input,
size_t input_length,
uint8_t * key,
size_t key_size,
size_t * key_length )

#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_key_management.h>

Derive a key from input material.

Parameters
[in]attributesKey attributes for the derived key.
[in]inputInput material.
[in]input_lengthLength of the input material in bytes.
[out]keyBuffer to store the derived key.
[in]key_sizeSize of the key buffer in bytes.
[out]key_lengthLength of the derived key in bytes.
Return values
PSA_SUCCESSThe operation completed successfully.
PSA_ERROR_NOT_SUPPORTEDThe key derivation is not supported.
PSA_ERROR_BUFFER_TOO_SMALLThe key buffer is too small.