mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 06:04:52 +02:00
MdePkg/DxeRngLib: Add gEfiRngAlgorithmArmRndr to the secure algorithms
DxeRngLib iterates over a list of secure algorithms before trying to use the default algorithm provided by the Rng protocol. Add gEfiRngAlgorithmArmRndr to this list. The algorithm represented by this GUID is a secure DRBG of an unknown type, implemented by the aarch64 RNDR instruction. On AARCH64 platform, use the RNDR instruction as the first option if it is available. Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
This commit is contained in:
parent
5ed8f64647
commit
273f43cec9
@ -33,6 +33,13 @@ typedef struct {
|
|||||||
// the RNG protocol and are generally considered secure.
|
// the RNG protocol and are generally considered secure.
|
||||||
//
|
//
|
||||||
GLOBAL_REMOVE_IF_UNREFERENCED SECURE_RNG_ALGO_ARRAY mSecureHashAlgorithms[] = {
|
GLOBAL_REMOVE_IF_UNREFERENCED SECURE_RNG_ALGO_ARRAY mSecureHashAlgorithms[] = {
|
||||||
|
#ifdef MDE_CPU_AARCH64
|
||||||
|
{
|
||||||
|
&gEfiRngAlgorithmArmRndr, // unspecified SP800-90A DRBG (through RNDR instr.)
|
||||||
|
"ARM-RNDR",
|
||||||
|
FALSE,
|
||||||
|
},
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
&gEfiRngAlgorithmSp80090Ctr256Guid, // SP800-90A DRBG CTR using AES-256
|
&gEfiRngAlgorithmSp80090Ctr256Guid, // SP800-90A DRBG CTR using AES-256
|
||||||
"DRBG-CTR",
|
"DRBG-CTR",
|
||||||
|
@ -40,5 +40,8 @@
|
|||||||
gEfiRngAlgorithmSp80090Hmac256Guid
|
gEfiRngAlgorithmSp80090Hmac256Guid
|
||||||
gEfiRngAlgorithmRaw
|
gEfiRngAlgorithmRaw
|
||||||
|
|
||||||
|
[Guids.AARCH64]
|
||||||
|
gEfiRngAlgorithmArmRndr
|
||||||
|
|
||||||
[FixedPcd]
|
[FixedPcd]
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdEnforceSecureRngAlgorithms ## CONSUMES
|
gEfiMdePkgTokenSpaceGuid.PcdEnforceSecureRngAlgorithms ## CONSUMES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user