]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/RandomNumberGenerator/RngDxe/Rand/RdRand.c
SecurityPkg/RngDxe: Rename RdRandGenerateEntropy to generic name
[mirror_edk2.git] / SecurityPkg / RandomNumberGenerator / RngDxe / Rand / RdRand.c
index 5b6644138231ddfb07aa778649ebf9b35906bc4e..4b011c7e8e495954bcbd314a6af41469296dafb0 100644 (file)
@@ -1,15 +1,23 @@
 /** @file\r
-  Support routines for RDRAND instruction access.\r
-\r
+  Support routines for RDRAND instruction access, which will leverage\r
+  Intel Secure Key technology to provide high-quality random numbers for use\r
+  in applications, or entropy for seeding other random number generators.\r
+  Refer to http://software.intel.com/en-us/articles/intel-digital-random-number\r
+  -generator-drng-software-implementation-guide/ for more information about Intel\r
+  Secure Key technology.\r
+\r
+Copyright (c) 2021 - 2022, Arm Limited. All rights reserved.<BR>\r
 Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
+#include <Library/BaseLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
 #include <Library/RngLib.h>\r
+#include <Library/TimerLib.h>\r
 \r
 #include "AesCore.h"\r
-#include "RdRand.h"\r
 #include "RngDxeInternals.h"\r
 \r
 /**\r
@@ -87,7 +95,7 @@ RdRandGetSeed128 (
 **/\r
 EFI_STATUS\r
 EFIAPI\r
-RdRandGenerateEntropy (\r
+GenerateEntropy (\r
   IN UINTN   Length,\r
   OUT UINT8  *Entropy\r
   )\r