31#define LIB_KMU_SUCCESS 0x0
36#define LIB_KMU_ERROR 0x1
41#define LIB_KMU_NULL_PNT 0x2
46#define LIB_KMU_REVOKED 0x3
bool lib_kmu_is_slot_empty(int slot_id)
Check if a KMU slot is empty.
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.
lib_kmu_rev_policy
KMU revocation policies.
Definition lib_kmu.h:50
@ LIB_KMU_REV_POLICY_RESERVED
Definition lib_kmu.h:51
@ LIB_KMU_REV_POLICY_REVOKED
Definition lib_kmu.h:54
@ LIB_KMU_REV_POLICY_LOCKED
Definition lib_kmu.h:53
@ LIB_KMU_REV_POLICY_ROTATING
Definition lib_kmu.h:52
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.
uint32_t metadata
Definition lib_kmu.h:71
uint32_t dest
Definition lib_kmu.h:68
uint32_t value[4]
Definition lib_kmu.h:62
uint32_t rpolicy
Definition lib_kmu.h:64
Source struct for KMU slot provisioning.
Definition lib_kmu.h:60