diff options
author | Pali Rohár <pali@kernel.org> | 2023-01-29 16:33:36 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2023-03-01 08:39:17 +0300 |
commit | bf78a57e9a84ef4c882acd8c8710d364ed90730e (patch) | |
tree | a18ae6db99c2e7933715c44e271d803d30e20599 /configs/geekbox_defconfig | |
parent | 39c78724f4e79227f0c4a13bd95ca44474204a07 (diff) | |
download | u-boot-bf78a57e9a84ef4c882acd8c8710d364ed90730e.tar.xz |
tools: kwbimage: Fix generating secure boot data image signature
Secure boot data image signature is calculated from the data image without
trailing 4-bit checksum. Commit 37cb9c15d70d ("tools: kwbimage: Simplify
aligning and calculating checksum") unintentionally broke this calculation
when it increased payloadsz variable by 4 bytes which was propagated also
into the add_secure_header_v1() function. Fix this issue by decreasing size
of buffer by 4 bytes from which is calculated secure boot data image
signature.
Fixes: 37cb9c15d70d ("tools: kwbimage: Simplify aligning and calculating checksum")
Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'configs/geekbox_defconfig')
0 files changed, 0 insertions, 0 deletions