EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Defines | Functions | Variables

CryptoPkg/Application/Cryptest/RandVerify.c File Reference

#include "Cryptest.h"

Go to the source code of this file.

Defines

#define RANDOM_NUMBER_SIZE   256

Functions

EFI_STATUS ValidateCryptPrng (VOID)

Variables

CONST UINT8 SeedString [] = "This is the random seed for PRNG verification."
UINT8 PreviousRandomBuffer [RANDOM_NUMBER_SIZE] = { 0x0 }
UINT8 RandomBuffer [RANDOM_NUMBER_SIZE] = { 0x0 }

Detailed Description

Application for Pseudorandom Number Generator Validation.

Copyright (c) 2010, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file RandVerify.c.


Define Documentation

#define RANDOM_NUMBER_SIZE   256

Definition at line 17 of file RandVerify.c.


Function Documentation

EFI_STATUS ValidateCryptPrng ( VOID  )

Validate UEFI-OpenSSL pseudorandom number generator interfaces.

Return values:
EFI_SUCCESSValidation succeeded.
EFI_ABORTEDValidation failed.

Definition at line 33 of file RandVerify.c.


Variable Documentation

UINT8 PreviousRandomBuffer[RANDOM_NUMBER_SIZE] = { 0x0 }

Definition at line 21 of file RandVerify.c.

UINT8 RandomBuffer[RANDOM_NUMBER_SIZE] = { 0x0 }

Definition at line 23 of file RandVerify.c.

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

Definition at line 19 of file RandVerify.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines