diff options
author | Wenxing Hou <wenxing.hou@intel.com> | 2024-03-27 14:15:43 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-03-29 03:04:09 +0000 |
commit | e4e1f6229cceb2ae27080d603738d70a37edc0b1 (patch) | |
tree | dede99d3e729dacb575ff11da6011c3ae76bd4b7 | |
parent | cf58f47623c40a66b160face4f04e08efb4c7f5b (diff) | |
download | edk2-e4e1f6229cceb2ae27080d603738d70a37edc0b1.tar.gz |
MdePkg: Add UEFI 2.10 DeviceAuthentication
According to UEFI 2.10 spec
32.8.2 UEFI Device Signature Variable GUID and Variable Name section,
add signature database for device authentication.
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Wenxing Hou <wenxing.hou@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
-rw-r--r-- | MdePkg/Include/Guid/DeviceAuthentication.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/MdePkg/Include/Guid/DeviceAuthentication.h b/MdePkg/Include/Guid/DeviceAuthentication.h new file mode 100644 index 0000000000..0dd933dfa5 --- /dev/null +++ b/MdePkg/Include/Guid/DeviceAuthentication.h @@ -0,0 +1,61 @@ +/** @file
+ Guid & data structure used for Device Security.
+
+ Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#ifndef EFI_DEVICE_AUTHENTICATION_GUID_H_
+#define EFI_DEVICE_AUTHENTICATION_GUID_H_
+
+/**
+ This is a signature database for device authentication, instead of image authentication.
+
+ The content of the signature database is same as the one in db/dbx. (a list of EFI_SIGNATURE_LIST)
+**/
+#define EFI_DEVICE_SIGNATURE_DATABASE_GUID \
+ {0xb9c2b4f4, 0xbf5f, 0x462d, 0x8a, 0xdf, 0xc5, 0xc7, 0xa, 0xc3, 0x5d, 0xad}
+#define EFI_DEVICE_SECURITY_DATABASE L"devdb"
+
+extern EFI_GUID gEfiDeviceSignatureDatabaseGuid;
+
+/**
+ Signature Database:
+
+ +---------------------------------------+ <-----------------
+ | SignatureType (GUID) | |
+ +---------------------------------------+ |
+ | SignatureListSize (UINT32) | |
+ +---------------------------------------+ |
+ | SignatureHeaderSize (UINT32) | |
+ +---------------------------------------+ |
+ | SignatureSize (UINT32) | |-EFI_SIGNATURE_LIST (1)
+ +---------------------------------------+ |
+ | SignatureHeader (SignatureHeaderSize) | |
+ +---------------------------------------+ <-- |
+ | SignatureOwner (GUID) | | |
+ +---------------------------------------+ |-EFI_SIGNATURE_DATA (1)
+ | SignatureData (SignatureSize - 16) | | |
+ +---------------------------------------+ <-- |
+ | SignatureOwner (GUID) | | |
+ +---------------------------------------+ |-EFI_SIGNATURE_DATA (n)
+ | SignatureData (SignatureSize - 16) | | |
+ +---------------------------------------+ <-----------------
+ | SignatureType (GUID) | |
+ +---------------------------------------+ |
+ | SignatureListSize (UINT32) | |-EFI_SIGNATURE_LIST (n)
+ +---------------------------------------+ |
+ | ... | |
+ +---------------------------------------+ <-----------------
+
+ SignatureType := EFI_CERT_SHAxxx_GUID |
+ EFI_CERT_RSA2048_GUID |
+ EFI_CERT_RSA2048_SHAxxx_GUID |
+ EFI_CERT_X509_GUID |
+ EFI_CERT_X509_SHAxxx_GUID
+ (xxx = 256, 384, 512)
+
+**/
+
+#endif
|