-/** @file \r
+/** @file\r
RNG Driver to produce the UEFI Random Number Generator protocol.\r
\r
- The driver will use the new RDRAND instruction to produce high-quality, high-performance \r
+ The driver will use the new RDRAND instruction to produce high-quality, high-performance\r
entropy and random number.\r
\r
RNG Algoritnms defined in UEFI 2.4:\r
- EFI_RNG_ALGORITHM_X9_31_3DES_GUID - Unsupported\r
- EFI_RNG_ALGORITHM_X9_31_AES_GUID - Unsupported\r
\r
-Copyright (c) 2013, Intel Corporation. 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
-This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
Returns information about the random number generation implementation.\r
\r
@param[in] This A pointer to the EFI_RNG_PROTOCOL instance.\r
- @param[in,out] RNGAlgorithmListSize On input, the size in bytes of RNGAlgorithmList. \r
+ @param[in,out] RNGAlgorithmListSize On input, the size in bytes of RNGAlgorithmList.\r
On output with a return code of EFI_SUCCESS, the size\r
in bytes of the data returned in RNGAlgorithmList. On output\r
with a return code of EFI_BUFFER_TOO_SMALL,\r
}\r
}\r
*RNGAlgorithmListSize = RequiredSize;\r
- \r
+\r
return Status;\r
}\r
\r
//\r
if (CompareGuid (RNGAlgorithm, &gEfiRngAlgorithmRaw)) {\r
//\r
- // When a DRBG is used on the output of a entropy source, \r
+ // When a DRBG is used on the output of a entropy source,\r
// its security level must be at least 256 bits according to UEFI Spec.\r
//\r
if (RNGValueLength < 32) {\r