TianoCore EDK2 master
Loading...
Searching...
No Matches
RngDxeInternals.h
Go to the documentation of this file.
1
10#ifndef RNGDXE_INTERNALS_H_
11#define RNGDXE_INTERNALS_H_
12
13#include <Protocol/Rng.h>
14
15//
16// Array containing the validated Rng algorithm.
17// The entry with the lowest index will be the default algorithm.
18//
19extern UINTN mAvailableAlgoArrayCount;
20extern EFI_RNG_ALGORITHM *mAvailableAlgoArray;
21
29EFIAPI
31 VOID
32 );
33
36VOID
37EFIAPI
39 VOID
40 );
41
66EFIAPI
68 IN EFI_RNG_PROTOCOL *This,
69 IN OUT UINTN *RNGAlgorithmListSize,
70 OUT EFI_RNG_ALGORITHM *RNGAlgorithmList
71 );
72
96EFIAPI
98 IN EFI_RNG_PROTOCOL *This,
99 IN EFI_RNG_ALGORITHM *RNGAlgorithm OPTIONAL,
100 IN UINTN RNGValueLength,
101 OUT UINT8 *RNGValue
102 );
103
115EFIAPI
117 IN UINTN Length,
118 OUT UINT8 *RandBuffer
119 );
120
132EFIAPI
134 IN UINTN Length,
135 OUT UINT8 *Entropy
136 );
137
138#endif // RNGDXE_INTERNALS_H_
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS EFIAPI GenerateEntropy(IN UINTN Length, OUT UINT8 *Entropy)
Definition: ArmTrng.c:35
EFI_STATUS EFIAPI GetAvailableAlgorithms(VOID)
Definition: AArch64Algo.c:29
VOID EFIAPI FreeAvailableAlgorithms(VOID)
Definition: ArmRngDxe.c:39
EFI_STATUS EFIAPI RngGetInfo(IN EFI_RNG_PROTOCOL *This, IN OUT UINTN *RNGAlgorithmListSize, OUT EFI_RNG_ALGORITHM *RNGAlgorithmList)
Definition: ArmRngDxe.c:141
EFI_STATUS EFIAPI RngGetBytes(IN UINTN Length, OUT UINT8 *RandBuffer)
Definition: RngDxe.c:132
EFI_STATUS EFIAPI RngGetRNG(IN EFI_RNG_PROTOCOL *This, IN EFI_RNG_ALGORITHM *RNGAlgorithm OPTIONAL, IN UINTN RNGValueLength, OUT UINT8 *RNGValue)
Definition: ArmRngDxe.c:72
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213