Added uefi-library: wolfCrypt as UEFI driver#559
Merged
kaleb-himes merged 1 commit intowolfSSL:masterfrom Feb 19, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new uefi-library module providing wolfCrypt as a UEFI boot-time protocol driver with hardware acceleration support, plus a companion uefi-static module for standalone UEFI applications. The implementation includes runtime symbol relocation, CPUID-based AES-NI detection with graceful fallback, and comprehensive cryptographic test coverage.
Changes:
- New UEFI protocol driver (
libwolfcrypt.efi) exposing wolfCrypt APIs to UEFI applications - Standalone test application (
test.efi) with KATs for AES, SHA, RSA, ECC, ML-KEM, Dilithium, etc. - Build system supporting x86_64/IA32, hardware/software variants, and QEMU integration
- Runtime symbol relocation guard and CPUID-based fallback mechanism via startup.nsh
Reviewed changes
Copilot reviewed 11 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| uefi-library/Makefile | Build system for x86_64/IA32 with hw/nohw variants and QEMU targets |
| uefi-library/wolfcrypt_api.h | EFI protocol definition with 680+ lines of API typedefs |
| uefi-library/src/driver.c | EFI driver entry point with EFIAPI wrappers and runtime relocation |
| uefi-library/src/test_app.c | Comprehensive test suite with KATs for all crypto primitives |
| uefi-library/src/utility_wolf.c | UEFI platform utilities (1651 lines) |
| uefi-library/user_settings.h | wolfSSL configuration for UEFI environment |
| uefi-library/startup.nsh | Fallback script for hw→nohw driver selection |
| uefi-static/* | Standalone UEFI application with custom string.c implementation |
| README.md | Documentation updates for both modules |
| .gitignore | Added *.efi and efifs/ exclusions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
kaleb-himes
approved these changes
Feb 19, 2026
Contributor
kaleb-himes
left a comment
There was a problem hiding this comment.
Thank you @danielinux, the driver is easy to read and understand with good documentation. Much appreciated!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- UEFI wolfCrypt boot-time protocol driver (libwolfcrypt.efi)
- Standalone UEFI test application (test.efi) with KATs
- Build/run targets for x86_64 and IA32, including no-hw/hw variants and QEMU flows