X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=SecurityPkg%2FRandomNumberGenerator%2FRngDxe%2FRngDxeInternals.h;h=f75140260820ab16e29e96ab5a6fe4f1f3643112;hb=4b3e9d80bedf5909a4ec901425ed9c0a738fc76f;hp=7ecab140483def8505b34dd2d8998441b8ade430;hpb=199031b2b0233652ad5d5fdf73f0f44c0f264d55;p=mirror_edk2.git diff --git a/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxeInternals.h b/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxeInternals.h index 7ecab14048..f751402608 100644 --- a/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxeInternals.h +++ b/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxeInternals.h @@ -12,6 +12,33 @@ #include +// +// Array containing the validated Rng algorithm. +// The entry with the lowest index will be the default algorithm. +// +extern UINTN mAvailableAlgoArrayCount; +extern EFI_RNG_ALGORITHM *mAvailableAlgoArray; + +/** Allocate and initialize mAvailableAlgoArray with the available + Rng algorithms. Also update mAvailableAlgoArrayCount. + + @retval EFI_SUCCESS The function completed successfully. + @retval EFI_OUT_OF_RESOURCES Could not allocate memory. +**/ +EFI_STATUS +EFIAPI +GetAvailableAlgorithms ( + VOID + ); + +/** Free mAvailableAlgoArray. +**/ +VOID +EFIAPI +FreeAvailableAlgorithms ( + VOID + ); + /** Returns information about the random number generation implementation.