2016-05-25 15:13:52 +00:00
|
|
|
From 5216de8394ff599e41c8540c0572368c18c51459 Mon Sep 17 00:00:00 2001
|
2014-08-20 17:22:24 +00:00
|
|
|
From: Dave Howells <dhowells@redhat.com>
|
|
|
|
Date: Tue, 23 Oct 2012 09:30:54 -0400
|
2016-05-25 15:13:52 +00:00
|
|
|
Subject: [PATCH 4/9] Add EFI signature data types
|
2014-08-20 17:22:24 +00:00
|
|
|
|
|
|
|
Add the data types that are used for containing hashes, keys and certificates
|
|
|
|
for cryptographic verification.
|
|
|
|
|
|
|
|
Bugzilla: N/A
|
|
|
|
Upstream-status: Fedora mustard for now
|
|
|
|
|
|
|
|
Signed-off-by: David Howells <dhowells@redhat.com>
|
|
|
|
---
|
|
|
|
include/linux/efi.h | 20 ++++++++++++++++++++
|
|
|
|
1 file changed, 20 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/include/linux/efi.h b/include/linux/efi.h
|
2016-05-25 15:13:52 +00:00
|
|
|
index 8cb38cfcba74..8c274b4ea8e6 100644
|
2014-08-20 17:22:24 +00:00
|
|
|
--- a/include/linux/efi.h
|
|
|
|
+++ b/include/linux/efi.h
|
2016-05-25 15:13:52 +00:00
|
|
|
@@ -647,6 +647,12 @@ void efi_native_runtime_setup(void);
|
2016-05-16 22:50:03 +00:00
|
|
|
EFI_GUID(0x4a67b082, 0x0a4c, 0x41cf, \
|
|
|
|
0xb6, 0xc7, 0x44, 0x0b, 0x29, 0xbb, 0x8c, 0x4f)
|
2014-08-20 17:22:24 +00:00
|
|
|
|
|
|
|
+#define EFI_CERT_SHA256_GUID \
|
|
|
|
+ EFI_GUID( 0xc1c41626, 0x504c, 0x4092, 0xac, 0xa9, 0x41, 0xf9, 0x36, 0x93, 0x43, 0x28 )
|
|
|
|
+
|
|
|
|
+#define EFI_CERT_X509_GUID \
|
|
|
|
+ EFI_GUID( 0xa5c059a1, 0x94e4, 0x4aa7, 0x87, 0xb5, 0xab, 0x15, 0x5c, 0x2b, 0xf0, 0x72 )
|
|
|
|
+
|
|
|
|
typedef struct {
|
|
|
|
efi_guid_t guid;
|
|
|
|
u64 table;
|
2016-05-25 15:13:52 +00:00
|
|
|
@@ -879,6 +885,20 @@ typedef struct {
|
2016-05-16 22:50:03 +00:00
|
|
|
efi_memory_desc_t entry[0];
|
|
|
|
} efi_memory_attributes_table_t;
|
2014-08-20 17:22:24 +00:00
|
|
|
|
|
|
|
+typedef struct {
|
|
|
|
+ efi_guid_t signature_owner;
|
|
|
|
+ u8 signature_data[];
|
|
|
|
+} efi_signature_data_t;
|
|
|
|
+
|
|
|
|
+typedef struct {
|
|
|
|
+ efi_guid_t signature_type;
|
|
|
|
+ u32 signature_list_size;
|
|
|
|
+ u32 signature_header_size;
|
|
|
|
+ u32 signature_size;
|
|
|
|
+ u8 signature_header[];
|
|
|
|
+ /* efi_signature_data_t signatures[][] */
|
|
|
|
+} efi_signature_list_t;
|
|
|
|
+
|
|
|
|
/*
|
|
|
|
* All runtime access to EFI goes through this structure:
|
|
|
|
*/
|
2015-09-09 15:10:06 +00:00
|
|
|
--
|
2016-05-16 22:50:03 +00:00
|
|
|
2.5.5
|
2015-09-09 15:10:06 +00:00
|
|
|
|