|
|
ea38f2f |
From ba3f737b8521314b62edaa7d4cc4bdc9aeefe394 Mon Sep 17 00:00:00 2001
|
|
|
6a91557 |
From: Dave Howells <dhowells@redhat.com>
|
|
|
6a91557 |
Date: Tue, 23 Oct 2012 09:30:54 -0400
|
|
|
ea38f2f |
Subject: [PATCH 15/20] 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 |
---
|
|
|
ea38f2f |
include/linux/efi.h | 17 +++++++++++++++++
|
|
|
ea38f2f |
1 file changed, 17 insertions(+)
|
|
|
6a91557 |
|
|
|
6a91557 |
diff --git a/include/linux/efi.h b/include/linux/efi.h
|
|
|
ea38f2f |
index 5af91b58afae..190858d62fe3 100644
|
|
|
6a91557 |
--- a/include/linux/efi.h
|
|
|
6a91557 |
+++ b/include/linux/efi.h
|
|
|
ea38f2f |
@@ -603,6 +603,9 @@ void efi_native_runtime_setup(void);
|
|
|
0fa6544 |
#define LINUX_EFI_LOADER_ENTRY_GUID EFI_GUID(0x4a67b082, 0x0a4c, 0x41cf, 0xb6, 0xc7, 0x44, 0x0b, 0x29, 0xbb, 0x8c, 0x4f)
|
|
|
962ea4f |
#define LINUX_EFI_RANDOM_SEED_TABLE_GUID EFI_GUID(0x1ce1e5bc, 0x7ceb, 0x42f2, 0x81, 0xe5, 0x8a, 0xad, 0xf1, 0x80, 0xf5, 0x7b)
|
|
|
6a91557 |
|
|
|
0fa6544 |
+#define EFI_CERT_SHA256_GUID EFI_GUID(0xc1c41626, 0x504c, 0x4092, 0xac, 0xa9, 0x41, 0xf9, 0x36, 0x93, 0x43, 0x28)
|
|
|
0fa6544 |
+#define EFI_CERT_X509_GUID 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;
|
|
|
ea38f2f |
@@ -853,6 +856,20 @@ typedef struct {
|
|
|
c3b50ba |
efi_memory_desc_t entry[0];
|
|
|
c3b50ba |
} efi_memory_attributes_table_t;
|
|
|
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 |
*/
|
|
|
18c8249 |
--
|
|
|
ea38f2f |
2.9.3
|
|
|
18c8249 |
|