Skip to content

Trim extracted kernel to correct length before measuring#14

Merged
alexhulbert merged 1 commit intomainfrom
ah/fix-kernel-hash
Apr 1, 2026
Merged

Trim extracted kernel to correct length before measuring#14
alexhulbert merged 1 commit intomainfrom
ah/fix-kernel-hash

Conversation

@alexhulbert
Copy link
Copy Markdown
Member

The .linux section in a UKI has padding bytes up to the PE file alignment boundary. Trimming to VirtualSize before computing the authenticode hash matches what UEFI actually measures.

@alexhulbert alexhulbert merged commit 61539d8 into main Apr 1, 2026
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