X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=SecurityPkg%2FRandomNumberGenerator%2FRngDxe%2FRngDxe.c;h=852bbfadd7ea8b5628b703b79a5db558c2a416bc;hp=32c46ab45f127f58a15cfc472754e1e9a7f0e1c1;hb=b3548d32ddb553a9e95503457c66d11462622d16;hpb=5a702acd3df099307d9bae0725f97b52b4895382 diff --git a/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c b/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c index 32c46ab45f..852bbfadd7 100644 --- a/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c +++ b/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c @@ -1,7 +1,7 @@ -/** @file +/** @file RNG Driver to produce the UEFI Random Number Generator protocol. - The driver will use the new RDRAND instruction to produce high-quality, high-performance + The driver will use the new RDRAND instruction to produce high-quality, high-performance entropy and random number. RNG Algoritnms defined in UEFI 2.4: @@ -14,14 +14,14 @@ - EFI_RNG_ALGORITHM_X9_31_3DES_GUID - Unsupported - EFI_RNG_ALGORITHM_X9_31_AES_GUID - Unsupported -Copyright (c) 2013, Intel Corporation. All rights reserved.
+Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2015 Hewlett Packard Enterprise Development LP
-This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at +This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ @@ -40,7 +40,7 @@ EFI_RNG_ALGORITHM mSupportedRngAlgorithms[] = { Returns information about the random number generation implementation. @param[in] This A pointer to the EFI_RNG_PROTOCOL instance. - @param[in,out] RNGAlgorithmListSize On input, the size in bytes of RNGAlgorithmList. + @param[in,out] RNGAlgorithmListSize On input, the size in bytes of RNGAlgorithmList. On output with a return code of EFI_SUCCESS, the size in bytes of the data returned in RNGAlgorithmList. On output with a return code of EFI_BUFFER_TOO_SMALL, @@ -89,7 +89,7 @@ RngGetInfo ( } } *RNGAlgorithmListSize = RequiredSize; - + return Status; } @@ -151,7 +151,7 @@ RngGetRNG ( // if (CompareGuid (RNGAlgorithm, &gEfiRngAlgorithmRaw)) { // - // When a DRBG is used on the output of a entropy source, + // When a DRBG is used on the output of a entropy source, // its security level must be at least 256 bits according to UEFI Spec. // if (RNGValueLength < 32) {