]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/OpensslLib/rand_pool_noise.h
CryptoPkg/OpensslLib: Add functions for upgrading OpenSSL1_1_1b
[mirror_edk2.git] / CryptoPkg / Library / OpensslLib / rand_pool_noise.h
1 /** @file
2 Provide rand noise source.
3
4 Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef __RAND_POOL_NOISE_H__
10 #define __RAND_POOL_NOISE_H__
11
12 #include <Uefi/UefiBaseType.h>
13
14 /**
15 Get 64-bit noise source.
16
17 @param[out] Rand Buffer pointer to store 64-bit noise source
18
19 @retval TRUE Get randomness successfully.
20 @retval FALSE Failed to generate
21 **/
22 BOOLEAN
23 EFIAPI
24 GetRandomNoise64 (
25 OUT UINT64 *Rand
26 );
27
28
29 #endif // __RAND_POOL_NOISE_H__