nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_cc3xx_platform_kmu_write_key()

int nrf_cc3xx_platform_kmu_write_key ( uint32_t slot_id,
nrf_cc3xx_platform_key_type_t key_type,
nrf_cc3xx_platform_key_buff_t key_buff )

#include <crypto/nrf_cc310_platform/include/nrf_cc3xx_platform_kmu.h>

Write a key into the KMU.

This writes a key into the KMU slot defined by slot_id. If the key is larger than 128 bit it will occupy two consecutive KMU slots.

Note
This function uses the default KMU key permissions, see NRF_CC3XX_PLATFORM_KMU_DEFAULT_PERMISSIONS.
Parameters
[in]slot_idKMU slot ID for the new key (2 - 127).
[in]key_typeThe type of the key to store in the KMU.
[in]key_buffBuffer containing the key material.
Returns
NRF_CC3XX_PLATFORM_SUCCESS on success, otherwise a negative value.