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