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
#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
#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
#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
HASH_FINAL HashFinal;\r
} HASH_TABLE;\r
\r
-#endif\r
+#endif
\ No newline at end of file