From 40bcbd8da2ed307cad938d43f22a62ee706beb83 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 21 Jan 2025 15:03:27 +0100 Subject: [PATCH] fixup! fix(core): calculate image hash including padding between header and code --- core/embed/projects/boardloader/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/embed/projects/boardloader/main.c b/core/embed/projects/boardloader/main.c index 3cb3adb2a9..3bed857091 100644 --- a/core/embed/projects/boardloader/main.c +++ b/core/embed/projects/boardloader/main.c @@ -192,7 +192,7 @@ static uint32_t check_sdcard(void) { } } - const uint32_t code_start_offset = IMAGE_CODE_ALIGN(headers_end_offset); + const uint32_t code_start_offset = headers_end_offset; if (sectrue != (check_single_hash(hdr->hashes,