XenevaOS
Loading...
Searching...
No Matches
Rng.h
Go to the documentation of this file.
1
17#ifndef __EFI_RNG_PROTOCOL_H__
18#define __EFI_RNG_PROTOCOL_H__
19
23#define EFI_RNG_PROTOCOL_GUID \
24 { \
25 0x3152bca5, 0xeade, 0x433d, {0x86, 0x2e, 0xc0, 0x1c, 0xdc, 0x29, 0x1f, 0x44 } \
26 }
27
29
35
37
43#define EFI_RNG_ALGORITHM_SP800_90_HASH_256_GUID \
44 { \
45 0xa7af67cb, 0x603b, 0x4d42, {0xba, 0x21, 0x70, 0xbf, 0xb6, 0x29, 0x3f, 0x96 } \
46 }
47#define EFI_RNG_ALGORITHM_SP800_90_HMAC_256_GUID \
48 { \
49 0xc5149b43, 0xae85, 0x4f53, {0x99, 0x82, 0xb9, 0x43, 0x35, 0xd3, 0xa9, 0xe7 } \
50 }
51#define EFI_RNG_ALGORITHM_SP800_90_CTR_256_GUID \
52 { \
53 0x44f0de6e, 0x4d8c, 0x4045, {0xa8, 0xc7, 0x4d, 0xd1, 0x68, 0x85, 0x6b, 0x9e } \
54 }
60#define EFI_RNG_ALGORITHM_X9_31_3DES_GUID \
61 { \
62 0x63c4785a, 0xca34, 0x4012, {0xa3, 0xc8, 0x0b, 0x6a, 0x32, 0x4f, 0x55, 0x46 } \
63 }
64#define EFI_RNG_ALGORITHM_X9_31_AES_GUID \
65 { \
66 0xacd03321, 0x777e, 0x4d3d, {0xb1, 0xc8, 0x20, 0xcf, 0xd8, 0x88, 0x20, 0xc9 } \
67 }
72#define EFI_RNG_ALGORITHM_RAW \
73 { \
74 0xe43176d7, 0xb6e8, 0x4827, {0xb7, 0x84, 0x7f, 0xfd, 0xc4, 0xb6, 0x85, 0x61 } \
75 }
76
100typedef
103 IN EFI_RNG_PROTOCOL *This,
104 IN OUT UINTN *RNGAlgorithmListSize,
105 OUT EFI_RNG_ALGORITHM *RNGAlgorithmList
106 );
107
130typedef
133 IN EFI_RNG_PROTOCOL *This,
134 IN EFI_RNG_ALGORITHM *RNGAlgorithm, OPTIONAL
135 IN UINTN RNGValueLength,
136 OUT UINT8 *RNGValue
137 );
138
147
155
156#endif
UINT64 UINTN
Definition ProcessorBind.h:118
#define EFIAPI
Definition ProcessorBind.h:172
#define IN
Definition Base.h:347
#define OUT
Definition Base.h:352
#define OPTIONAL
Definition Base.h:358
EFI_STATUS(EFIAPI * EFI_RNG_GET_RNG)(IN EFI_RNG_PROTOCOL *This, IN EFI_RNG_ALGORITHM *RNGAlgorithm, OPTIONAL IN UINTN RNGValueLength, OUT UINT8 *RNGValue)
Definition Rng.h:132
EFI_GUID gEfiRngProtocolGuid
EFI_GUID gEfiRngAlgorithmSp80090Hash256Guid
EFI_GUID gEfiRngAlgorithmX9313DesGuid
EFI_GUID EFI_RNG_ALGORITHM
Definition Rng.h:36
EFI_GUID gEfiRngAlgorithmX931AesGuid
EFI_STATUS(EFIAPI * EFI_RNG_GET_INFO)(IN EFI_RNG_PROTOCOL *This, IN OUT UINTN *RNGAlgorithmListSize, OUT EFI_RNG_ALGORITHM *RNGAlgorithmList)
Definition Rng.h:102
EFI_GUID gEfiRngAlgorithmRaw
EFI_GUID gEfiRngAlgorithmSp80090Ctr256Guid
EFI_GUID gEfiRngAlgorithmSp80090Hmac256Guid
RETURN_STATUS EFI_STATUS
Definition UefiBaseType.h:33
unsigned char UINT8
Definition actypes.h:236
Definition Base.h:281
Definition Rng.h:143
EFI_RNG_GET_RNG GetRNG
Definition Rng.h:145
EFI_RNG_GET_INFO GetInfo
Definition Rng.h:144