]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLibNull/Rand/CryptRandNull.c
CryptoPkg: Apply uncrustify changes
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLibNull / Rand / CryptRandNull.c
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 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #include "InternalCryptLib.h"
11
12 /**
13 Sets up the seed value for the pseudorandom number generator.
14
15 Return FALSE to indicate this interface is not supported.
16
17 @param[in] Seed Pointer to seed value.
18 If NULL, default seed is used.
19 @param[in] SeedSize Size of seed value.
20 If Seed is NULL, this parameter is ignored.
21
22 @retval FALSE This interface is not supported.
23
24 **/
25 BOOLEAN
26 EFIAPI
27 RandomSeed (
28 IN CONST UINT8 *Seed OPTIONAL,
29 IN UINTN SeedSize
30 )
31 {
32 ASSERT (FALSE);
33 return FALSE;
34 }
35
36 /**
37 Generates a pseudorandom byte stream of the specified size.
38
39 Return FALSE to indicate this interface is not supported.
40
41 @param[out] Output Pointer to buffer to receive random value.
42 @param[in] Size Size of random bytes to generate.
43
44 @retval FALSE This interface is not supported.
45
46 **/
47 BOOLEAN
48 EFIAPI
49 RandomBytes (
50 OUT UINT8 *Output,
51 IN UINTN Size
52 )
53 {
54 ASSERT (FALSE);
55 return FALSE;
56 }