]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.c
SecurityPkg: Integrate new RngLib into RngDxe
[mirror_edk2.git] / SecurityPkg / RandomNumberGenerator / RngDxe / RngDxe.c
index 98ef3b357fa5f3a6d45903d8e2d54aeb2deb4a75..32c46ab45f127f58a15cfc472754e1e9a7f0e1c1 100644 (file)
@@ -15,6 +15,7 @@
    - EFI_RNG_ALGORITHM_X9_31_AES_GUID         - Unsupported\r
 \r
 Copyright (c) 2013, 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
@@ -156,7 +157,7 @@ RngGetRNG (
     if (RNGValueLength < 32) {\r
       return EFI_INVALID_PARAMETER;\r
     }\r
-    \r
+\r
     Status = RdRandGenerateEntropy (RNGValueLength, RNGValue);\r
     return Status;\r
   }\r
@@ -196,14 +197,6 @@ RngDriverEntry (
   EFI_STATUS    Status;\r
   EFI_HANDLE    Handle;\r
 \r
-  //\r
-  // Verify RdRand support on Platform.\r
-  //\r
-  Status = IsRdRandSupported ();\r
-  if (EFI_ERROR (Status)) {\r
-    return Status;\r
-  }\r
-\r
   //\r
   // Install UEFI RNG (Random Number Generator) Protocol\r
   //\r
@@ -214,6 +207,6 @@ RngDriverEntry (
                   &mRngRdRand,\r
                   NULL\r
                   );\r
-  \r
+\r
   return Status;\r
 }\r