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

[CHERRY-PICK] Reduce Crypto RNG Assumptions #89

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

os-d
Copy link

@os-d os-d commented Jun 6, 2024

Description

Cherry-picked from f54450c. Edited mu_basecore to point to latest release/202302 and fixed a merged conflict in the README.


CryptoBinPkg.dsc: Use static stack cookie init for DXE

Simplifies the RNG support expected of platforms integrating
the DXE binary.


CryptoBinPkg: Use PeiRngLib and DxeRngLib for crypto binaries

Since platforms integrating the binaries may have very different
levels of support for random number generation, allow the platform
to provide a RNG service for PEI and DXE.

A similar change may be made for SMM and Standalone MM environments
in the future.


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

How This Was Tested

  • Build and platform integration
  • Verify RNG PPI/Protocol is present on the PEI and DXE binaries
  • Verify the PeiRngLib and DxeRngLib libraries can locate and use
    the RNG PPI and Protocol

Integration Instructions

  • Read the readme update made in this change in the
    "Dependencies Built into Shared Crypto" section.

Signed-off-by: Michael Kubacki [email protected]

Sorry, something went wrong.

**NOTE: This PR should only be completed when we are sure that we would
like to
introduce a dependency on the RNG PPI and RNG Protocol for the PEI and
DXE
binaries.**

NOTE: This will need to be cherry-picked into the release/202302 branch
(with the MU_BASECORE submodule updated).

---

**CryptoBinPkg.dsc: Use static stack cookie init for DXE**

Simplifies the RNG support expected of platforms integrating
the DXE binary.

---

**CryptoBinPkg: Use PeiRngLib and DxeRngLib for crypto binaries**

Since platforms integrating the binaries may have very different
levels of support for random number generation, allow the platform
to provide a RNG service for PEI and DXE.

A similar change may be made for SMM and Standalone MM environments
in the future.

---

- [x] Impacts functionality?
- [ ] Impacts security?
- [x] Breaking change?
- [ ] Includes tests?
- [x] Includes documentation?

- Build and platform integration
- Verify RNG PPI/Protocol is present on the PEI and DXE binaries
- Verify the PeiRngLib and DxeRngLib libraries can locate and use
  the RNG PPI and Protocol

- Read the readme update made in this change in the
  "Dependencies Built into Shared Crypto" section.

---------

Signed-off-by: Michael Kubacki <[email protected]>
@os-d os-d requested review from Javagedes, kuqin12 and apop5 June 6, 2024 17:38
@github-actions github-actions bot added impact:breaking-change Requires integration attention type:documentation Improvements or additions to documentation labels Jun 6, 2024
@os-d os-d merged commit 68c7e29 into microsoft:release/202302 Jun 6, 2024
5 checks passed
@os-d os-d deleted the osde/2302_rng_ppi branch June 6, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact:breaking-change Requires integration attention type:documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants