Skip to content

Trim extracted kernel to correct length before measuring#14

Open
alexhulbert wants to merge 1 commit intomainfrom
ah/fix-kernel-hash
Open

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

Conversation

@alexhulbert
Copy link
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.

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