nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
Bootloader storage (protected data).

Enumerations

enum  bl_storage_lcs {
  BL_STORAGE_LCS_UNKNOWN = 0 , BL_STORAGE_LCS_ASSEMBLY = 1 , BL_STORAGE_LCS_PROVISIONING = 2 , BL_STORAGE_LCS_SECURED = 3 ,
  BL_STORAGE_LCS_DECOMMISSIONED = 4
}
 The PSA life cycle states a device can be in. More...
 

Functions

uint32_t s0_address_read (void)
 Function for reading address of slot 0.
 
uint32_t s1_address_read (void)
 Function for reading address of slot 1.
 
uint32_t num_public_keys_read (void)
 Function for reading number of public key data slots.
 
int verify_public_keys (void)
 Function for verifying public keys.
 
int public_key_data_read (uint32_t key_idx, uint8_t *p_buf)
 Function for reading public key hashes.
 
void invalidate_public_key (uint32_t key_idx)
 Function for invalidating a public key.
 
int num_monotonic_counter_slots (uint16_t counter_desc, uint16_t *counter_slots)
 Get the number of monotonic counter slots.
 
int get_monotonic_counter (uint16_t counter_desc, counter_t *counter_value)
 Get the current HW monotonic counter.
 
int set_monotonic_counter (uint16_t counter_desc, counter_t new_counter)
 Set the current HW monotonic counter.
 
int is_monotonic_counter_update_possible (uint16_t counter_desc)
 Checks whether it is possible to update the monotonic counter to a new value.
 
int read_life_cycle_state (enum bl_storage_lcs *lcs)
 Read the current life cycle state the device is in from OTP,.
 
int update_life_cycle_state (enum bl_storage_lcs next_lcs)
 Update the life cycle state in OTP.
 
void read_implementation_id_from_otp (uint8_t *buf)
 
int read_variable_data (enum variable_data_type data_type, uint8_t *buf, uint32_t *buf_len)
 Read variable data from OTP.
 

Detailed Description