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

◆ public_key_data_read()

int public_key_data_read ( uint32_t  key_idx,
uint8_t *  p_buf 
)

#include <include/bl_storage.h>

Function for reading public key hashes.

Parameters
[in]key_idxIndex of key.
[out]p_bufPointer to where the hash will be written. The buffer must be at least SB_PUBLIC_KEY_HASH_LEN bytes large.
Returns
Number of successfully written bytes to p_buf.
Return values
-EINVALKey has been invalidated.
-EFAULTkey_idx is too large. There is no key with that index.