11#ifndef __IMAGE_AUTHTICATION_H__
12#define __IMAGE_AUTHTICATION_H__
20#define EFI_IMAGE_SECURITY_DATABASE_GUID \
22 0xd719b2cb, 0x3d3a, 0x4596, { 0xa3, 0xbc, 0xda, 0xd0, 0xe, 0x67, 0x65, 0x6f } \
29#define EFI_IMAGE_SECURITY_DATABASE L"db"
34#define EFI_IMAGE_SECURITY_DATABASE1 L"dbx"
39#define EFI_IMAGE_SECURITY_DATABASE2 L"dbt"
41#define SECURE_BOOT_MODE_ENABLE 1
42#define SECURE_BOOT_MODE_DISABLE 0
47#define DEVICE_AUTH_BOOT_MODE_ENABLE 1
48#define DEVICE_AUTH_BOOT_MODE_DISABLE 0
149#define EFI_CERT_SHA256_GUID \
151 0xc1c41626, 0x504c, 0x4092, {0xac, 0xa9, 0x41, 0xf9, 0x36, 0x93, 0x43, 0x28} \
161#define EFI_CERT_RSA2048_GUID \
163 0x3c5766e8, 0x269c, 0x4e34, {0xaa, 0x14, 0xed, 0x77, 0x6e, 0x85, 0xb3, 0xb6} \
171#define EFI_CERT_RSA2048_SHA256_GUID \
173 0xe2b36190, 0x879b, 0x4a3d, {0xad, 0x8d, 0xf2, 0xe7, 0xbb, 0xa3, 0x27, 0x84} \
180#define EFI_CERT_SHA1_GUID \
182 0x826ca512, 0xcf10, 0x4ac9, {0xb1, 0x87, 0xbe, 0x1, 0x49, 0x66, 0x31, 0xbd} \
189#define EFI_CERT_SM3_GUID \
191 0x57347f87, 0x7a9b, 0x403a, { 0xb9, 0x3c, 0xdc, 0x4a, 0xfb, 0x7a, 0xe, 0xbc } \
199#define EFI_CERT_RSA2048_SHA1_GUID \
201 0x67f8444f, 0x8743, 0x48f1, {0xa3, 0x28, 0x1e, 0xaa, 0xb8, 0x73, 0x60, 0x80} \
213#define EFI_CERT_X509_GUID \
215 0xa5c059a1, 0x94e4, 0x4aa7, {0x87, 0xb5, 0xab, 0x15, 0x5c, 0x2b, 0xf0, 0x72} \
226#define EFI_CERT_X509_SM3_GUID \
228 0x60d807e5, 0x10b4, 0x49a9, {0x93, 0x31, 0xe4, 0x4, 0x37, 0x88, 0x8d, 0x37 } \
236#define EFI_CERT_SHA224_GUID \
238 0xb6e5233, 0xa65c, 0x44c9, {0x94, 0x7, 0xd9, 0xab, 0x83, 0xbf, 0xc8, 0xbd} \
246#define EFI_CERT_SHA384_GUID \
248 0xff3e5307, 0x9fd0, 0x48c9, {0x85, 0xf1, 0x8a, 0xd5, 0x6c, 0x70, 0x1e, 0x1} \
256#define EFI_CERT_SHA512_GUID \
258 0x93e0fae, 0xa6c4, 0x4f50, {0x9f, 0x1b, 0xd4, 0x1e, 0x2b, 0x89, 0xc1, 0x9a} \
269#define EFI_CERT_X509_SHA256_GUID \
271 0x3bd2a492, 0x96c0, 0x4079, {0xb4, 0x20, 0xfc, 0xf9, 0x8e, 0xf1, 0x03, 0xed } \
282#define EFI_CERT_X509_SHA384_GUID \
284 0x7076876e, 0x80c2, 0x4ee6, {0xaa, 0xd2, 0x28, 0xb3, 0x49, 0xa6, 0x86, 0x5b } \
295#define EFI_CERT_X509_SHA512_GUID \
297 0x446dbf63, 0x2502, 0x4cda, {0xbc, 0xfa, 0x24, 0x65, 0xd2, 0xb0, 0xfe, 0x9d } \
304#define EFI_CERT_TYPE_PKCS7_GUID \
306 0x4aafd29d, 0x68df, 0x49ee, {0x8a, 0xa9, 0x34, 0x7d, 0x37, 0x56, 0x65, 0xa7} \
314#define EFI_IMAGE_EXECUTION_AUTHENTICATION 0x00000007
315#define EFI_IMAGE_EXECUTION_AUTH_UNTESTED 0x00000000
316#define EFI_IMAGE_EXECUTION_AUTH_SIG_FAILED 0x00000001
317#define EFI_IMAGE_EXECUTION_AUTH_SIG_PASSED 0x00000002
318#define EFI_IMAGE_EXECUTION_AUTH_SIG_NOT_FOUND 0x00000003
319#define EFI_IMAGE_EXECUTION_AUTH_SIG_FOUND 0x00000004
320#define EFI_IMAGE_EXECUTION_POLICY_FAILED 0x00000005
321#define EFI_IMAGE_EXECUTION_INITIALIZED 0x00000008
UINT64 UINTN
Unsigned value of native width.
unsigned char UINT8
1-byte unsigned value.
unsigned int UINT32
4-byte unsigned value.
GUID for EFI (NVRAM) Variables.
EFI_HASH_SERVICE_BINDING_PROTOCOL as defined in UEFI 2.0.
UINT8 EFI_SHA256_HASH[32]
UINT8 EFI_SHA512_HASH[64]
UINT8 EFI_SHA384_HASH[48]
EFI_GUID gEfiCertX509Sha256Guid
EFI_GUID gEfiCertX509Sm3Guid
EFI_GUID gEfiCertX509Sha512Guid
EFI_GUID gEfiCertSha384Guid
EFI_GUID gEfiCertRsa2048Sha1Guid
UINT32 EFI_IMAGE_EXECUTION_ACTION
EFI_GUID gEfiCertX509Sha384Guid
EFI_GUID gEfiCertRsa2048Guid
EFI_GUID gEfiCertSha1Guid
EFI_GUID gEfiCertSha224Guid
EFI_GUID gEfiCertRsa2048Sha256Guid
EFI_GUID gEfiCertX509Guid
EFI_GUID gEfiImageSecurityDatabaseGuid
EFI_GUID gEfiCertSha512Guid
EFI_GUID gEfiCertSha256Guid
EFI_GUID gEfiCertPkcs7Guid
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
EFI_SHA256_HASH ToBeSignedHash
The SHA256 hash of an X.509 certificate's To-Be-Signed contents.
EFI_TIME TimeOfRevocation
The time that the certificate shall be considered to be revoked.
EFI_SHA384_HASH ToBeSignedHash
The SHA384 hash of an X.509 certificate's To-Be-Signed contents.
EFI_TIME TimeOfRevocation
The time that the certificate shall be considered to be revoked.
EFI_SHA512_HASH ToBeSignedHash
The SHA512 hash of an X.509 certificate's To-Be-Signed contents.
EFI_TIME TimeOfRevocation
The time that the certificate shall be considered to be revoked.
EFI_TIME TimeOfRevocation
The time that the certificate shall be considered to be revoked.
EFI_SM3_HASH ToBeSignedHash
The SM3 hash of an X.509 certificate's To-Be-Signed contents.
UINTN NumberOfImages
Number of EFI_IMAGE_EXECUTION_INFO structures.
EFI_IMAGE_EXECUTION_ACTION Action
Describes the action taken by the firmware regarding this image.
UINT32 InfoSize
Size of all of the entire structure.
The format of a signature database.
EFI_GUID SignatureOwner
An identifier which identifies the agent which added the signature to the list.
UINT8 SignatureData[1]
The format of the signature is defined by the SignatureType.
UINT32 SignatureHeaderSize
Size of the signature header which precedes the array of signatures.
EFI_GUID SignatureType
Type of the signature.
UINT32 SignatureListSize
Total size of the signature list, including this header.
UINT32 SignatureSize
Size of each signature.
EFI Time Abstraction: Year: 1900 - 9999 Month: 1 - 12 Day: 1 - 31 Hour: 0 - 23 Minute: 0 - 59 Second:...