]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Application/Cryptest/DhVerify.c
CryptoPkg Updates to support RFC3161 timestamp signature verification.
[mirror_edk2.git] / CryptoPkg / Application / Cryptest / DhVerify.c
index 455d85b6d2e7c643b75a7af075d4cc74d90bd75e..6384a8a697c9b331b678a6e64c0ec98c3b3ab50a 100644 (file)
@@ -1,7 +1,7 @@
-/** @file  \r
+/** @file\r
   Application for Diffie-Hellman Primitives Validation.\r
 \r
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<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
@@ -41,6 +41,14 @@ ValidateCryptDh (
 \r
   Print (L"\nUEFI-OpenSSL DH Engine Testing:\n");\r
 \r
+  //\r
+  // Initialize Key Length\r
+  //\r
+  PublicKey1Length = sizeof (PublicKey1);\r
+  PublicKey2Length = sizeof (PublicKey2);\r
+  Key1Length       = sizeof (Key1);\r
+  Key2Length       = sizeof (Key2);\r
+\r
   //\r
   // Generate & Initialize DH Context\r
   //\r
@@ -114,4 +122,4 @@ ValidateCryptDh (
   Print (L"[Pass]\n");\r
 \r
   return EFI_SUCCESS;\r
-}\r
+}
\ No newline at end of file