#include <crypto/nrf_cc310_platform/include/nrf_cc3xx_platform_kmu.h>
Load a unique 128 bit root key into CryptoCell KDR registers and set CryptoCell LCS state to secure.
- Note
- This function must be run once on every boot do load an AES key into KDR. It is recommended that this is done in an immutable bootloader stage and the page holding the key is ACL read+write protected after it has been loaded into KDR with this API.
-
The KDR key should be a randomly generated unique key.
-
The KDR key will be stored in the Always on Domain (AO) until the next reset. It is not possible to set the KDR value once the LCS state is set to secure.
- Parameters
-
| [in] | key | Array with the AES 128 bit key. |
- Returns
- NRF_CC3XX_PLATFORM_SUCCESS on success, otherwise a negative value.