Skip to content

DxeImageVerificationLib rewrite#1796

Draft
Javagedes wants to merge 9 commits into
microsoft:release/202511from
Javagedes:personal/joeyvagedes/cryptopkg-image-verify
Draft

DxeImageVerificationLib rewrite#1796
Javagedes wants to merge 9 commits into
microsoft:release/202511from
Javagedes:personal/joeyvagedes/cryptopkg-image-verify

Conversation

@Javagedes
Copy link
Copy Markdown
Contributor

Description

A rewrite of DxeImageVerificationLib. This is a WIP (ValidateSignedImage and Config Table manipulation have not yet been implemented).

It is suggested you look at each commit instead of reviewing the PR as a whole.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

<Describe the test(s) that were run to verify the changes.>

Integration Instructions

<Describe how these changes should be integrated. Use N/A if nothing is required.>

Javagedes added 8 commits May 13, 2026 15:14
Add skills files and rearchitecture documentation
Adds two additional fields of PE_COFF_LOADER_IMAGE_CONTEXT:

1. `DataDirectoryRead`: An optional caller provided callback to
   to execute code on the given `EFI_IMAGE_DATA_DIRECTORY`
2. `DataDirectoryReadContext`: An optional caller provided opaque
   pointer that can be used by `DataDirectoryRead`.
Adds a API to the BaseCryptLib Library that accepts a image buffer
and a hash type guid and returns a digest buffer and size.
Adds the Policy verification implementation and security data directory
lookup to determine the image validation path to follow
(ValidateUnsignedImage or ValidateSignedImage).
Add unit tests for support code in Policy.c and Support.c
@Javagedes Javagedes changed the title Personal/joeyvagedes/cryptopkg image verify DxeImageVerificationLib rewrite May 13, 2026
@mu-automation
Copy link
Copy Markdown
Contributor

mu-automation Bot commented May 13, 2026

⌛ QEMU Validation Pending

QEMU validation is pending on successful CI completion.

Note: Any previous results are available in this comment's edit history.

This comment was automatically generated by the Mu QEMU PR Validation workflow.

@Javagedes Javagedes force-pushed the personal/joeyvagedes/cryptopkg-image-verify branch from ea9878b to 9169502 Compare May 13, 2026 22:59
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 13, 2026

Codecov Report

❌ Patch coverage is 0% with 38 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/202511@a3a9cc8). Learn more about missing BASE report.

Files with missing lines Patch % Lines
MdePkg/Library/BasePeCoffLib/BasePeCoff.c 0.00% 38 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##             release/202511    #1796   +/-   ##
=================================================
  Coverage                  ?    1.07%           
=================================================
  Files                     ?     1473           
  Lines                     ?   377494           
  Branches                  ?     4777           
=================================================
  Hits                      ?     4056           
  Misses                    ?   372559           
  Partials                  ?      879           
Flag Coverage Δ
FmpDevicePkg 9.53% <ø> (?)
MdeModulePkg 0.21% <ø> (?)
MdePkg 3.30% <0.00%> (?)
NetworkPkg 0.55% <ø> (?)
PolicyServicePkg 30.42% <ø> (?)
UefiCpuPkg 3.00% <ø> (?)
UnitTestFrameworkPkg 11.70% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants