TianoCore EDK2 master
Loading...
Searching...
No Matches
Rng.h
Go to the documentation of this file.
1
11#ifndef __EFI_RNG_PROTOCOL_H__
12#define __EFI_RNG_PROTOCOL_H__
13
17#define EFI_RNG_PROTOCOL_GUID \
18 { \
19 0x3152bca5, 0xeade, 0x433d, {0x86, 0x2e, 0xc0, 0x1c, 0xdc, 0x29, 0x1f, 0x44 } \
20 }
21
23
29
31
37#define EFI_RNG_ALGORITHM_SP800_90_HASH_256_GUID \
38 { \
39 0xa7af67cb, 0x603b, 0x4d42, {0xba, 0x21, 0x70, 0xbf, 0xb6, 0x29, 0x3f, 0x96 } \
40 }
41#define EFI_RNG_ALGORITHM_SP800_90_HMAC_256_GUID \
42 { \
43 0xc5149b43, 0xae85, 0x4f53, {0x99, 0x82, 0xb9, 0x43, 0x35, 0xd3, 0xa9, 0xe7 } \
44 }
45#define EFI_RNG_ALGORITHM_SP800_90_CTR_256_GUID \
46 { \
47 0x44f0de6e, 0x4d8c, 0x4045, {0xa8, 0xc7, 0x4d, 0xd1, 0x68, 0x85, 0x6b, 0x9e } \
48 }
54#define EFI_RNG_ALGORITHM_X9_31_3DES_GUID \
55 { \
56 0x63c4785a, 0xca34, 0x4012, {0xa3, 0xc8, 0x0b, 0x6a, 0x32, 0x4f, 0x55, 0x46 } \
57 }
58#define EFI_RNG_ALGORITHM_X9_31_AES_GUID \
59 { \
60 0xacd03321, 0x777e, 0x4d3d, {0xb1, 0xc8, 0x20, 0xcf, 0xd8, 0x88, 0x20, 0xc9 } \
61 }
66#define EFI_RNG_ALGORITHM_RAW \
67 { \
68 0xe43176d7, 0xb6e8, 0x4827, {0xb7, 0x84, 0x7f, 0xfd, 0xc4, 0xb6, 0x85, 0x61 } \
69 }
75#define EFI_RNG_ALGORITHM_ARM_RNDR \
76 { \
77 0x43d2fde3, 0x9d4e, 0x4d79, {0x02, 0x96, 0xa8, 0x9b, 0xca, 0x78, 0x08, 0x41} \
78 }
79
103typedef
105(EFIAPI *EFI_RNG_GET_INFO)(
106 IN EFI_RNG_PROTOCOL *This,
107 IN OUT UINTN *RNGAlgorithmListSize,
108 OUT EFI_RNG_ALGORITHM *RNGAlgorithmList
109 );
110
133typedef
135(EFIAPI *EFI_RNG_GET_RNG)(
136 IN EFI_RNG_PROTOCOL *This,
137 IN EFI_RNG_ALGORITHM *RNGAlgorithm OPTIONAL,
138 IN UINTN RNGValueLength,
139 OUT UINT8 *RNGValue
140 );
141
147 EFI_RNG_GET_INFO GetInfo;
148 EFI_RNG_GET_RNG GetRNG;
149};
150
151extern EFI_GUID gEfiRngProtocolGuid;
152extern EFI_GUID gEfiRngAlgorithmSp80090Hash256Guid;
153extern EFI_GUID gEfiRngAlgorithmSp80090Hmac256Guid;
154extern EFI_GUID gEfiRngAlgorithmSp80090Ctr256Guid;
155extern EFI_GUID gEfiRngAlgorithmX9313DesGuid;
156extern EFI_GUID gEfiRngAlgorithmX931AesGuid;
157extern EFI_GUID gEfiRngAlgorithmRaw;
158extern EFI_GUID gEfiRngAlgorithmArmRndr;
159
160#endif
UINT64 UINTN
#define OPTIONAL
Definition: Base.h:290
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_GUID EFI_RNG_ALGORITHM
Definition: Rng.h:30
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:135
EFI_STATUS(EFIAPI * EFI_RNG_GET_INFO)(IN EFI_RNG_PROTOCOL *This, IN OUT UINTN *RNGAlgorithmListSize, OUT EFI_RNG_ALGORITHM *RNGAlgorithmList)
Definition: Rng.h:105
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213