Index: src/platform/vboot_reference/utils/firmware_image.c |
diff --git a/src/platform/vboot_reference/utils/firmware_image.c b/src/platform/vboot_reference/utils/firmware_image.c |
index 0aa44f1fa295d1b2faf763c557b771b06f83e37b..c5838ffaed556dc5d172343bdc0d082bfdd9d019 100644 |
--- a/src/platform/vboot_reference/utils/firmware_image.c |
+++ b/src/platform/vboot_reference/utils/firmware_image.c |
@@ -135,7 +135,7 @@ FirmwareImage* ReadFirmwareImage(const char* input_file) { |
} |
int GetFirmwareHeaderLen(const FirmwareImage* image) { |
- return (FIELD_LEN(header_len) + FIELD_LEN(header_len) + |
+ return (FIELD_LEN(header_len) + FIELD_LEN(firmware_sign_algorithm) + |
RSAProcessedKeySize(image->firmware_sign_algorithm) + |
FIELD_LEN(firmware_key_version) + FIELD_LEN(header_checksum)); |
} |