[][src]Function nrfxlib_sys::nrf_inbuilt_key_read

pub unsafe extern "C" fn nrf_inbuilt_key_read(
    sec_tag: nrf_sec_tag_t,
    cred_type: nrf_key_mgnt_cred_type_t,
    p_buffer: *mut u8,
    p_buffer_len: *mut u16
) -> c_int

@brief Read back a credential from persistent storage.

This function will read the credential from persistent memory referenced by a sec_tag.

@param[in] sec_tag Application defined tag for this credential to read. @param[in] cred_type Type of credential being read. @param[in] p_buffer Output buffer containing where to write the read credential data. @param[inout] p_buffer_len Length of the output buffer as input, and length used as output parameter.

@retval 0 If read operation was successful. @retval NRF_EIO If operation was not successful due to internal error or uninitialized module. @retval NRF_ENOBUFS If the operation could not be performed because it could not allocate enough intermediate buffers to perform the operation. @retval NRF_ENOENT If there was no credential associated with the sec_tag and cred_type. @retval NRF_EPERM If the application did not have permission to do the operation. @retval NRF_EACCES If the operation could not be performed while modem is in active state. @retval NRF_EINVAL If provided buffer is to small for result data. If failing with this error, the size needed is provided as output parameter by reference in the output p_buffer_len output parameter.