forked from tianocore/edk2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MdePkg: Add Random Number Generator (RNG) PPI
REF:tianocore#10529 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]>
- Loading branch information
1 parent
7518b93
commit de5c119
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** @file | ||
The Random Number Generator (RNG) PPI is used to provide random bits for use | ||
in PEIMs, or entropy for seeding other random number generators. The PPI was | ||
introduced in the PI 1.9 Specification. | ||
Copyright (c) Microsoft Corporation. | ||
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
**/ | ||
|
||
#ifndef RNG_PPI_H_ | ||
#define RNG_PPI_H_ | ||
|
||
#include <Guid/Rng.h> | ||
|
||
/// | ||
/// Global ID for the Random Number Generator PPI | ||
/// | ||
#define RNG_PPI_GUID \ | ||
{ \ | ||
0xeaed0a7e, 0x1a70, 0x4c2b, { 0x85, 0x58, 0x37, 0x17, 0x74, 0x56, 0xd8, 0x06 } \ | ||
} | ||
|
||
typedef EFI_RNG_INTERFACE RNG_PPI; | ||
|
||
extern EFI_GUID gEfiRngPpiGuid; | ||
|
||
#endif |
This file contains 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