bootloader: Calculate SHA-256 of image while loading/verifying

This commit is contained in:
Angus Gratton
2017-06-27 17:25:30 +10:00
committed by Angus Gratton
parent 8f6134dd96
commit 43b99edf2b
7 changed files with 278 additions and 25 deletions

View File

@@ -81,8 +81,7 @@ typedef struct {
esp_image_header_t image; /* Header for entire image */
esp_image_segment_header_t segments[ESP_IMAGE_MAX_SEGMENTS]; /* Per-segment header data */
uint32_t segment_data[ESP_IMAGE_MAX_SEGMENTS]; /* Data offsets for each segment */
uint32_t image_length;
uint32_t image_len; /* Length of image on flash, in bytes */
} esp_image_metadata_t;
/* Mode selection for esp_image_load() */