nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_modem_bootloader_digest()

int nrf_modem_bootloader_digest ( struct nrf_modem_bootloader_fw_segment segments,
size_t  num_segments,
struct nrf_modem_bootloader_digest digest_buffer 
)

#include <nrf_modem/include/nrf_modem_bootloader.h>

Read a digest hash data from the modem.

Parameters
[in]segmentsFirmware segments.
[in]num_segmentsNumber of firmware segments.
[out]digest_bufferPointer to the buffer to store digest hash data.
Return values
0on success.
-NRF_EINVALWhen digest_buffer pointer is NULL.
-NRF_EOPNOTSUPPIf bootloader is not programmed.
-NRF_EPERMWhen modem did not accept RPC command.
-NRF_ENOEXECWhen RPC command failed.
-NRF_ETIMEDOUTWhen modem did not respond.
-NRF_EIOWhen incorrect response received from modem.