TianoCore EDK2 master
Loading...
Searching...
No Matches
RandTests.c File Reference
#include "TestBaseCryptLib.h"

Go to the source code of this file.

Macros

#define RANDOM_NUMBER_SIZE   256
 

Functions

UNIT_TEST_STATUS EFIAPI TestVerifyPrngGeneration (UNIT_TEST_CONTEXT Context)
 

Variables

CONST UINT8 SeedString [] = "This is the random seed for PRNG verification."
 
UINT8 PreviousRandomBuffer [RANDOM_NUMBER_SIZE] = { 0x0 }
 
UINT8 RandomBuffer [RANDOM_NUMBER_SIZE] = { 0x0 }
 
TEST_DESC mPrngTest []
 
UINTN mPrngTestNum = ARRAY_SIZE (mPrngTest)
 

Detailed Description

Application for Pseudorandom Number Generator Validation.

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

Definition in file RandTests.c.

Macro Definition Documentation

◆ RANDOM_NUMBER_SIZE

#define RANDOM_NUMBER_SIZE   256

Definition at line 11 of file RandTests.c.

Function Documentation

◆ TestVerifyPrngGeneration()

UNIT_TEST_STATUS EFIAPI TestVerifyPrngGeneration ( UNIT_TEST_CONTEXT  Context)

Definition at line 21 of file RandTests.c.

Variable Documentation

◆ mPrngTest

TEST_DESC mPrngTest[]
Initial value:
= {
{ "TestVerifyPrngGeneration()", "CryptoPkg.BaseCryptLib.Prng", TestVerifyPrngGeneration, NULL, NULL, NULL },
}
#define NULL
Definition: Base.h:319

Definition at line 44 of file RandTests.c.

◆ mPrngTestNum

UINTN mPrngTestNum = ARRAY_SIZE (mPrngTest)

Definition at line 51 of file RandTests.c.

◆ PreviousRandomBuffer

UINT8 PreviousRandomBuffer[RANDOM_NUMBER_SIZE] = { 0x0 }

Definition at line 15 of file RandTests.c.

◆ RandomBuffer

UINT8 RandomBuffer[RANDOM_NUMBER_SIZE] = { 0x0 }

Definition at line 17 of file RandTests.c.

◆ SeedString

CONST UINT8 SeedString[] = "This is the random seed for PRNG verification."

Definition at line 13 of file RandTests.c.