mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-20 09:08:10 +02:00
Move the structure definition to a common location that can be shared with the RNG PPI. Move the algorithms to a common header that can be referenced independent of the protocol. Include the algorithm header in the interface header since the algorithms are directly used in the interface and for compatibility with existing code. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
29 lines
722 B
C
29 lines
722 B
C
/** @file
|
|
EFI_RNG_PROTOCOL as defined in UEFI 2.4.
|
|
The UEFI Random Number Generator Protocol is used to provide random bits for use
|
|
in applications, or entropy for seeding other random number generators.
|
|
|
|
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef EFI_RNG_PROTOCOL_H_
|
|
#define EFI_RNG_PROTOCOL_H_
|
|
|
|
#include <Guid/Rng.h>
|
|
|
|
///
|
|
/// Global ID for the Random Number Generator Protocol
|
|
///
|
|
#define EFI_RNG_PROTOCOL_GUID \
|
|
{ \
|
|
0x3152bca5, 0xeade, 0x433d, {0x86, 0x2e, 0xc0, 0x1c, 0xdc, 0x29, 0x1f, 0x44 } \
|
|
}
|
|
|
|
typedef EFI_RNG_INTERFACE EFI_RNG_PROTOCOL;
|
|
|
|
extern EFI_GUID gEfiRngProtocolGuid;
|
|
|
|
#endif
|