]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/Library/RngLib.h
2 Provides random number generator services.
4 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 Generates a 16-bit random number.
21 if Rand is NULL, then ASSERT().
23 @param[out] Rand Buffer pointer to store the 16-bit random value.
25 @retval TRUE Random number generated successfully.
26 @retval FALSE Failed to generate the random number.
36 Generates a 32-bit random number.
38 if Rand is NULL, then ASSERT().
40 @param[out] Rand Buffer pointer to store the 32-bit random value.
42 @retval TRUE Random number generated successfully.
43 @retval FALSE Failed to generate the random number.
53 Generates a 64-bit random number.
55 if Rand is NULL, then ASSERT().
57 @param[out] Rand Buffer pointer to store the 64-bit random value.
59 @retval TRUE Random number generated successfully.
60 @retval FALSE Failed to generate the random number.
70 Generates a 128-bit random number.
72 if Rand is NULL, then ASSERT().
74 @param[out] Rand Buffer pointer to store the 128-bit random value.
76 @retval TRUE Random number generated successfully.
77 @retval FALSE Failed to generate the random number.
86 #endif // __RNG_LIB_H__