1 /** @file 2 Pseudorandom Number Generator Wrapper Implementation which does not provide 3 real capabilities. 4 5 Copyright (c) 2012, Intel Corporation. All rights reserved.<BR> 6 This program and the accompanying materials 7 are licensed and made available under the terms and conditions of the BSD License 8 which accompanies this distribution. The full text of the license may be found at 9 http://opensource.org/licenses/bsd-license.php 10 11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 13 14 **/ 15 16 #include "InternalCryptLib.h" 17 18 19 /** 20 Sets up the seed value for the pseudorandom number generator. 21 22 Return FALSE to indicate this interface is not supported. 23 24 @param[in] Seed Pointer to seed value. 25 If NULL, default seed is used. 26 @param[in] SeedSize Size of seed value. 27 If Seed is NULL, this parameter is ignored. 28 29 @retval FALSE This interface is not supported. 30 31 **/ 32 BOOLEAN 33 EFIAPI 34 RandomSeed ( 35 IN CONST UINT8 *Seed OPTIONAL, 36 IN UINTN SeedSize 37 ) 38 { 39 ASSERT (FALSE); 40 return FALSE; 41 } 42 43 /** 44 Generates a pseudorandom byte stream of the specified size. 45 46 Return FALSE to indicate this interface is not supported. 47 48 @param[out] Output Pointer to buffer to receive random value. 49 @param[in] Size Size of randome bytes to generate. 50 51 @retval FALSE This interface is not supported. 52 53 **/ 54 BOOLEAN 55 EFIAPI 56 RandomBytes ( 57 OUT UINT8 *Output, 58 IN UINTN Size 59 ) 60 { 61 ASSERT (FALSE); 62 return FALSE; 63 } 64