TianoCore EDK2 master
|
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/RngLib.h>
#include "ArmRng.h"
#include "BaseRngLibInternals.h"
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | BaseRngLibConstructor (VOID) |
BOOLEAN EFIAPI | ArchGetRandomNumber16 (OUT UINT16 *Rand) |
BOOLEAN EFIAPI | ArchGetRandomNumber32 (OUT UINT32 *Rand) |
BOOLEAN EFIAPI | ArchGetRandomNumber64 (OUT UINT64 *Rand) |
BOOLEAN EFIAPI | ArchIsRngSupported (VOID) |
EFI_STATUS EFIAPI | GetRngGuid (GUID *RngGuid) |
Variables | |
STATIC BOOLEAN | mRndrSupported |
Random number generator service that uses the RNDR instruction to provide pseudorandom numbers.
Copyright (c) 2023, Arm Limited. All rights reserved.
Copyright (c) 2021, NUVIA Inc. All rights reserved.
Copyright (c) 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Rndr.c.
BOOLEAN EFIAPI ArchGetRandomNumber16 | ( | OUT UINT16 * | Rand | ) |
BOOLEAN EFIAPI ArchGetRandomNumber32 | ( | OUT UINT32 * | Rand | ) |
BOOLEAN EFIAPI ArchGetRandomNumber64 | ( | OUT UINT64 * | Rand | ) |
BOOLEAN EFIAPI ArchIsRngSupported | ( | VOID | ) |
EFI_STATUS EFIAPI BaseRngLibConstructor | ( | VOID | ) |
The constructor function checks whether or not RNDR instruction is supported by the host hardware.
The constructor function checks whether or not RNDR instruction is supported. It will ASSERT() if RNDR instruction is not supported. It will always return EFI_SUCCESS.
EFI_SUCCESS | The constructor always returns EFI_SUCCESS. |
EFI_STATUS EFIAPI GetRngGuid | ( | GUID * | RngGuid | ) |