Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2405: Add RNG PPI [Rebase & FF] #972

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

makubacki
Copy link
Member

Description

MdePkg: Add Random Number Generator (RNG) PPI

Adds a new PPI that serves the same purpose as EFI_RNG_PROTOCOL in
DXE. This PPI can be produced by a PEIM to provide a dynamic interface
to RNG services in PEI.

This PPI is called EFI_RNG_PPI because it shares the exact same
interface with EFI_RNG_PROTOCOL which is described in the UEFI
Speficiation.


MdePkg: Add PeiRngLib

Adds a new PEI library instance for RngLib that uses the RNG services
provided by the RNG PPI.

This library instance will add a DEPEX on gEfiRngPpiGuid on modules
it links against. It can be used to allow PEIMs to get RNG support
over a dynamic interface.


Cherry picked from 2311 commits:

  • 58a2bca

  • fc52e41

  • Impacts functionality?

  • Impacts security?

  • Breaking change?

  • Includes tests?

  • Includes documentation?

How This Was Tested

  • MdePkg CI
  • Verify the RNG PPI can be successfully produced and consumed

Integration Instructions

If a platform needs to share RNG support across a dynamic interface
between PEIMs, the RNG PPI can be used. PeiRngLib provides a RngLib
instance that use the RNG PPI. It will include a dependency on gEfiRngPpiGuid.

@makubacki makubacki added the type:feature-request A new feature proposal label Jun 26, 2024
@makubacki makubacki self-assigned this Jun 26, 2024
@makubacki makubacki linked an issue Jun 26, 2024 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (release/202405@14d3e31). Learn more about missing BASE report.

Additional details and impacted files
@@                Coverage Diff                @@
##             release/202405     #972   +/-   ##
=================================================
  Coverage                  ?   43.42%           
=================================================
  Files                     ?      180           
  Lines                     ?    25101           
  Branches                  ?     6016           
=================================================
  Hits                      ?    10901           
  Misses                    ?    14135           
  Partials                  ?       65           
Flag Coverage Δ
MdeModulePkg 17.80% <ø> (?)
MdePkg 51.59% <ø> (?)
NetworkPkg 8.51% <ø> (?)
UefiCpuPkg 39.84% <ø> (?)
UnitTestFrameworkPkg 6.01% <ø> (?)

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.

Adds a new PPI that serves the same purpose as EFI_RNG_PROTOCOL in
DXE. This PPI can be produced by a PEIM to provide a dynamic interface
to RNG services in PEI.

Signed-off-by: Michael Kubacki <[email protected]>
Adds a new PEI library instance for RngLib that uses the RNG services
provided by the RNG PPI.

This library instance will add a DEPEX on gEfiRngPpiGuid on modules
it links against. It can be used to allow PEIMs to get RNG support
over a dynamic interface.

Signed-off-by: Michael Kubacki <[email protected]>
@makubacki makubacki enabled auto-merge (rebase) June 27, 2024 14:18
@makubacki makubacki merged commit bb2f962 into microsoft:release/202405 Jun 27, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature-request A new feature proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: RNG PPI
4 participants