]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLib/Rand/CryptRandNull.c
CryptoPkg: Apply uncrustify changes
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / Rand / CryptRandNull.c
CommitLineData
532616bb 1/** @file\r
2 Pseudorandom Number Generator Wrapper Implementation which does not provide\r
3 real capabilities.\r
4\r
5Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
2009f6b4 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
532616bb 7\r
8**/\r
9\r
10#include "InternalCryptLib.h"\r
11\r
532616bb 12/**\r
13 Sets up the seed value for the pseudorandom number generator.\r
14\r
15 Return FALSE to indicate this interface is not supported.\r
16\r
17 @param[in] Seed Pointer to seed value.\r
18 If NULL, default seed is used.\r
19 @param[in] SeedSize Size of seed value.\r
20 If Seed is NULL, this parameter is ignored.\r
21\r
22 @retval FALSE This interface is not supported.\r
23\r
24**/\r
25BOOLEAN\r
26EFIAPI\r
27RandomSeed (\r
28 IN CONST UINT8 *Seed OPTIONAL,\r
29 IN UINTN SeedSize\r
30 )\r
31{\r
32 ASSERT (FALSE);\r
33 return FALSE;\r
34}\r
35\r
36/**\r
37 Generates a pseudorandom byte stream of the specified size.\r
38\r
39 Return FALSE to indicate this interface is not supported.\r
40\r
41 @param[out] Output Pointer to buffer to receive random value.\r
2998af86 42 @param[in] Size Size of random bytes to generate.\r
532616bb 43\r
44 @retval FALSE This interface is not supported.\r
45\r
46**/\r
47BOOLEAN\r
48EFIAPI\r
49RandomBytes (\r
50 OUT UINT8 *Output,\r
51 IN UINTN Size\r
52 )\r
53{\r
54 ASSERT (FALSE);\r
55 return FALSE;\r
56}\r