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