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