Skip to content

fix(image): hash payload after the TLV area, jump to entry_addr - #44

Open
Noor-Nabi4 wants to merge 1 commit into
embeddedos-org:masterfrom
Noor-Nabi4:fix/image-tlv-payload-offset
Open

fix(image): hash payload after the TLV area, jump to entry_addr#44
Noor-Nabi4 wants to merge 1 commit into
embeddedos-org:masterfrom
Noor-Nabi4:fix/image-tlv-payload-offset

Conversation

@Noor-Nabi4

Copy link
Copy Markdown

eos_sign.py lays out [header][TLV][payload] and hashes payload only,
but verify_integrity hashed from hdr_size and rejected signed images.
Skip a well-formed TLV (fail closed if it is corrupt) and jump to
entry_addr so copy-to-RAM images boot at the validated vector.

Signed-off-by: Noor Nabi gcnoor6@gmail.com
Co-authored-by: Cursor cursoragent@cursor.com

eos_sign.py lays out [header][TLV][payload] and hashes payload only,
but verify_integrity hashed from hdr_size and rejected signed images.
Skip a well-formed TLV (fail closed if it is corrupt) and jump to
entry_addr so copy-to-RAM images boot at the validated vector.

Signed-off-by: Noor Nabi <gcnoor6@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant