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

◆ hw_unique_key_derive_key()

int hw_unique_key_derive_key ( enum hw_unique_key_slot  key_slot,
const uint8_t *  context,
size_t  context_size,
uint8_t const *  label,
size_t  label_size,
uint8_t *  output,
uint32_t  output_size 
)

#include <include/hw_unique_key.h>

Derive a key from the specified HUK, using the nrf_cc3xx_platform API on CryptoCell. Cracen PSA driver APIs on Cracen.

See nrf_cc3xx_platform_kmu_shadow_key_derive() for more info.

Parameters
[in]key_slotKeyslot to derive from.
[in]contextContext for key derivation.
[in]context_sizeSize of context.
[in]labelLabel for key derivation.
[in]label_sizeSize of label.
[out]outputThe derived key.
[in]output_sizeSize of output.
Returns
HW_UNIQUE_KEY_SUCCESS on success, otherwise a negative hardware unique key error code