nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
lib_kmu.h File Reference
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  kmu_src
 Source struct for KMU slot provisioning. More...
 

Macros

#define LIB_KMU_SUCCESS   0x0
 Indicates a successful KMU operation.
 
#define LIB_KMU_ERROR   0x1
 Error during the KMU operation.
 
#define LIB_KMU_NULL_PNT   0x2
 Got a null pointer for KMU data.
 
#define LIB_KMU_REVOKED   0x3
 The key is revoked.
 

Enumerations

enum  lib_kmu_rev_policy { LIB_KMU_REV_POLICY_RESERVED , LIB_KMU_REV_POLICY_ROTATING , LIB_KMU_REV_POLICY_LOCKED , LIB_KMU_REV_POLICY_REVOKED }
 KMU revocation policies. More...
 

Functions

int lib_kmu_provision_slot (int slot_id, struct kmu_src *kmu_src)
 Provision a KMU slot with data.
 
int lib_kmu_push_slot (int slot_id)
 Push the KMU slot to its destination address.
 
int lib_kmu_block_slot_range (int slot_id, unsigned int slot_count)
 Block one or more consecutive KMU slots.
 
int lib_kmu_revoke_slot (int slot_id)
 Revoke the KMU slot.
 
int lib_kmu_read_metadata (int slot_id, uint32_t *metadata)
 Read the metadata of a KMU slot.
 
bool lib_kmu_is_slot_empty (int slot_id)
 Check if a KMU slot is empty.