aboutsummaryrefslogtreecommitdiffstats
path: root/roms/edk2/CryptoPkg/Library/OpensslLib/rand_pool_noise.c
diff options
context:
space:
mode:
Diffstat (limited to 'roms/edk2/CryptoPkg/Library/OpensslLib/rand_pool_noise.c')
-rw-r--r--roms/edk2/CryptoPkg/Library/OpensslLib/rand_pool_noise.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/roms/edk2/CryptoPkg/Library/OpensslLib/rand_pool_noise.c b/roms/edk2/CryptoPkg/Library/OpensslLib/rand_pool_noise.c
new file mode 100644
index 000000000..212834e27
--- /dev/null
+++ b/roms/edk2/CryptoPkg/Library/OpensslLib/rand_pool_noise.c
@@ -0,0 +1,29 @@
+/** @file
+ Provide rand noise source.
+
+Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
+SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#include <Library/BaseLib.h>
+
+/**
+ Get 64-bit noise source
+
+ @param[out] Rand Buffer pointer to store 64-bit noise source
+
+ @retval FALSE Failed to generate
+**/
+BOOLEAN
+EFIAPI
+GetRandomNoise64 (
+ OUT UINT64 *Rand
+ )
+{
+ //
+ // Return FALSE will fallback to use PerformanceCounter to
+ // generate noise.
+ //
+ return FALSE;
+}