TianoCore EDK2 master
Loading...
Searching...
No Matches
CryptRandNull.c File Reference
#include "InternalCryptLib.h"

Go to the source code of this file.

Functions

BOOLEAN EFIAPI RandomSeed (IN CONST UINT8 *Seed OPTIONAL, IN UINTN SeedSize)
 
BOOLEAN EFIAPI RandomBytes (OUT UINT8 *Output, IN UINTN Size)
 

Detailed Description

Pseudorandom Number Generator Wrapper Implementation which does not provide real capabilities.

Copyright (c) 2012, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file CryptRandNull.c.

Function Documentation

◆ RandomBytes()

BOOLEAN EFIAPI RandomBytes ( OUT UINT8 *  Output,
IN UINTN  Size 
)

Generates a pseudorandom byte stream of the specified size.

Return FALSE to indicate this interface is not supported.

Parameters
[out]OutputPointer to buffer to receive random value.
[in]SizeSize of random bytes to generate.
Return values
FALSEThis interface is not supported.

Definition at line 49 of file CryptRandNull.c.

◆ RandomSeed()

BOOLEAN EFIAPI RandomSeed ( IN CONST UINT8 *Seed  OPTIONAL,
IN UINTN  SeedSize 
)

Sets up the seed value for the pseudorandom number generator.

Return FALSE to indicate this interface is not supported.

Parameters
[in]SeedPointer to seed value. If NULL, default seed is used.
[in]SeedSizeSize of seed value. If Seed is NULL, this parameter is ignored.
Return values
FALSEThis interface is not supported.

Definition at line 27 of file CryptRandNull.c.