9#include "InternalCryptLib.h"
10#include <openssl/rand.h>
11#include <openssl/evp.h>
37 CHAR8 DefaultSeed[128];
39 if (SeedSize > INT_MAX) {
48 RAND_seed (Seed, (UINT32)SeedSize);
56 "UEFI Crypto Library default seed (%ld)",
60 RAND_seed (DefaultSeed,
sizeof (DefaultSeed));
63 if (RAND_status () == 1) {
92 if ((Output ==
NULL) || (Size > INT_MAX)) {
99 if (RAND_bytes (Output, (UINT32)Size) != 1) {
UINT64 EFIAPI AsmReadTsc(VOID)
UINTN EFIAPI AsciiSPrint(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString,...)
BOOLEAN EFIAPI RandomBytes(OUT UINT8 *Output, IN UINTN Size)
BOOLEAN EFIAPI RandomSeed(IN CONST UINT8 *Seed OPTIONAL, IN UINTN SeedSize)