Skip to content

[RFC][IN-PROGRESS] RFC: Migrate to edk2-Crypto#8

Open
Flickdm wants to merge 1 commit intotianocore:mainfrom
Flickdm:rfc/0002-edk2-crypto
Open

[RFC][IN-PROGRESS] RFC: Migrate to edk2-Crypto#8
Flickdm wants to merge 1 commit intotianocore:mainfrom
Flickdm:rfc/0002-edk2-crypto

Conversation

@Flickdm
Copy link

@Flickdm Flickdm commented Feb 5, 2026

RFC: Migrate to Edk2-Crypto

This RFC proposes new separation boundaries between edk2 and edk2-crypto.
The end goal here is to unify crypto history and improve reviews by cryptographic auditors.
There are additional separate benefits to this model detailed in the RFC.

This proposed RFC describes how to separate and what items would go where.

Display the Rich Text for the best view of the diagrams.


@Flickdm Flickdm requested review from a team, makubacki and mdkinney as code owners February 5, 2026 00:47

- Add edk2-crypto as submodule to EDK2
- Update OVMF as reference implementation
- Platform migration: add submodule, update PACKAGES_PATH, update DSC mappings
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If edk2 has edk2-crypto as a submodule, platforms wouldn’t need to include it as a submodule, right?

@makubacki makubacki requested review from jyao1 and liyi77 February 5, 2026 22:15

### What Moves to edk2-crypto

- **OpensslPkg** - OpenSSL-based BaseCryptLib + OpensslLib + IntrinsicLib
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EDK2 didn't allow to use submodule's submodule:
https://github.com/tianocore/edk2?tab=readme-ov-file#submodules


- Platforms must be able to build with edk2-crypto as a submodule
- No C code changes required for migration (DSC/submodule only)
- Both OpensslPkg and MbedTlsPkg must implement BaseCryptLib.h
Copy link
Member

@makubacki makubacki Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to consider the breakout of crypto providers to OpensslPkg and MbedTlsPkg in a separate and dedicated RFC.

That can happen independently of a repo switch. The edk2-crytpo repo RFC could then refer to that RFC.

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.

4 participants