]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.h
correct a data type error.
[mirror_edk2.git] / SecurityPkg / Library / DxeImageVerificationLib / DxeImageVerificationLib.h
index 2cd1f87468d3951fac2d2d449eb2d567744e3207..b09ef8afd3e1b0d66ad383a949abbc8a0a4e18a0 100644 (file)
@@ -2,13 +2,13 @@
   The internal header file includes the common header files, defines\r
   internal structure and functions used by ImageVerificationLib.\r
 \r
-Copyright (c) 2009 - 2011, 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
+Copyright (c) 2009 - 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
 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
@@ -28,6 +28,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/PcdLib.h>\r
 #include <Library/DevicePathLib.h>\r
 #include <Library/SecurityManagementLib.h>\r
+#include <Library/PeCoffLib.h>\r
 #include <Protocol/FirmwareVolume2.h>\r
 #include <Protocol/DevicePath.h>\r
 #include <Protocol/BlockIo.h>\r
@@ -40,6 +41,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define EFI_CERT_TYPE_RSA2048_SHA256_SIZE 256\r
 #define EFI_CERT_TYPE_RSA2048_SIZE        256\r
 #define MAX_NOTIFY_STRING_LEN             64\r
+#define TWO_BYTE_ENCODE                   0x82\r
+\r
+#define ALIGNMENT_SIZE                    8\r
+#define ALIGN_SIZE(a) (((a) % ALIGNMENT_SIZE) ? ALIGNMENT_SIZE - ((a) % ALIGNMENT_SIZE) : 0)\r
 \r
 //\r
 // Image type definitions\r
@@ -71,9 +76,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define HASHALG_MAX                            0x00000005\r
 \r
 //\r
-// Set max digest size as SHA256 Output (32 bytes) by far\r
+// Set max digest size as SHA512 Output (64 bytes) by far\r
 //\r
-#define MAX_DIGEST_SIZE    SHA256_DIGEST_SIZE      \r
+#define MAX_DIGEST_SIZE    SHA512_DIGEST_SIZE\r
 //\r
 //\r
 // PKCS7 Certificate definition\r
@@ -199,4 +204,4 @@ typedef struct {
   HASH_FINAL               HashFinal;\r
 } HASH_TABLE;\r
 \r
-#endif\r
+#endif
\ No newline at end of file