6a91557
From: Dave Howells <dhowells@redhat.com>
6a91557
Date: Tue, 23 Oct 2012 09:30:54 -0400
6a91557
Subject: [PATCH] Add EFI signature data types
6a91557
6a91557
Add the data types that are used for containing hashes, keys and certificates
6a91557
for cryptographic verification.
6a91557
6a91557
Bugzilla: N/A
6a91557
Upstream-status: Fedora mustard for now
6a91557
6a91557
Signed-off-by: David Howells <dhowells@redhat.com>
6a91557
---
6a91557
 include/linux/efi.h | 20 ++++++++++++++++++++
6a91557
 1 file changed, 20 insertions(+)
6a91557
6a91557
diff --git a/include/linux/efi.h b/include/linux/efi.h
3fbe156
index 130ba866a24a..58d7feadd149 100644
6a91557
--- a/include/linux/efi.h
6a91557
+++ b/include/linux/efi.h
3fbe156
@@ -586,6 +586,12 @@ void efi_native_runtime_setup(void);
6a91557
 #define DEVICE_TREE_GUID \
6a91557
     EFI_GUID(  0xb1b621d5, 0xf19c, 0x41a5, 0x83, 0x0b, 0xd9, 0x15, 0x2c, 0x69, 0xaa, 0xe0 )
6a91557
 
6a91557
+#define EFI_CERT_SHA256_GUID \
6a91557
+    EFI_GUID(  0xc1c41626, 0x504c, 0x4092, 0xac, 0xa9, 0x41, 0xf9, 0x36, 0x93, 0x43, 0x28 )
6a91557
+
6a91557
+#define EFI_CERT_X509_GUID \
6a91557
+    EFI_GUID(  0xa5c059a1, 0x94e4, 0x4aa7, 0x87, 0xb5, 0xab, 0x15, 0x5c, 0x2b, 0xf0, 0x72 )
6a91557
+
6a91557
 typedef struct {
6a91557
 	efi_guid_t guid;
6a91557
 	u64 table;
3fbe156
@@ -801,6 +807,20 @@ typedef struct _efi_file_io_interface {
6a91557
 
6a91557
 #define EFI_INVALID_TABLE_ADDR		(~0UL)
6a91557
 
6a91557
+typedef struct  {
6a91557
+	efi_guid_t signature_owner;
6a91557
+	u8 signature_data[];
6a91557
+} efi_signature_data_t;
6a91557
+
6a91557
+typedef struct {
6a91557
+	efi_guid_t signature_type;
6a91557
+	u32 signature_list_size;
6a91557
+	u32 signature_header_size;
6a91557
+	u32 signature_size;
6a91557
+	u8 signature_header[];
6a91557
+	/* efi_signature_data_t signatures[][] */
6a91557
+} efi_signature_list_t;
6a91557
+
6a91557
 /*
6a91557
  * All runtime access to EFI goes through this structure:
6a91557
  */
6a91557
-- 
1e63a38
2.1.0
6a91557