bootloader_sha256_flash_contents() function
Generates the digest of the data between offset & offset+length. This function should be used when the size of the data is larger than 3.2MB. The MMU capacity is 3.2MB (50 pages - 64KB each). This function generates the SHA-256 of the data in chunks of 3.2MB, considering the MMU capacity.
Arguments
flash_offset
Offset of the data in flash.
len
Length of data in bytes.
digest
Pointer to buffer where the digest is written, if ESP_OK is returned.
Return value
ESP_OK if secure boot digest is generated successfully.
bootloader_sha256_flash_contents() is called by 1 function and calls 6 functions:
![]()
bootloader_sha256_flash_contents()
bootloader_sha256_flash_contents():
![]()
bootloader_sha256_flash_contents()