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

◆ identity_key_write_key()

int identity_key_write_key ( uint8_t  key[(32)])

#include <include/identity_key.h>

Function to write a previously generated identity key to the KMU.

The identity key will be encrypted using the Master Key Encryption Key (MKEK).

This function can be used in a scheme where the key is securely provisioned to the device in production.

Note
This function is generally only used in provisioning of the device and hence is not part of the code running on the end-product.
Returns
IDENTITY_KEY_SUCCESS on success, otherwise a negative identity key error code