|
iPXE
|
Image signature database are defined for the signed image validation. More...
Go to the source code of this file.
Data Structures | |
| struct | EFI_SIGNATURE_DATA |
| The format of a signature database. More... | |
| struct | EFI_SIGNATURE_LIST |
| struct | EFI_CERT_X509_SHA256 |
| struct | EFI_CERT_X509_SHA384 |
| struct | EFI_CERT_X509_SHA512 |
| struct | EFI_CERT_X509_SM3 |
| struct | EFI_IMAGE_EXECUTION_INFO |
| struct | EFI_IMAGE_EXECUTION_INFO_TABLE |
Macros | |
| #define | EFI_IMAGE_SECURITY_DATABASE_GUID |
| #define | EFI_IMAGE_SECURITY_DATABASE L"db" |
| Varialbe name with guid EFI_IMAGE_SECURITY_DATABASE_GUID for the authorized signature database. More... | |
| #define | EFI_IMAGE_SECURITY_DATABASE1 L"dbx" |
| Varialbe name with guid EFI_IMAGE_SECURITY_DATABASE_GUID for the forbidden signature database. More... | |
| #define | EFI_IMAGE_SECURITY_DATABASE2 L"dbt" |
| Variable name with guid EFI_IMAGE_SECURITY_DATABASE_GUID for the timestamp signature database. More... | |
| #define | SECURE_BOOT_MODE_ENABLE 1 |
| #define | SECURE_BOOT_MODE_DISABLE 0 |
| #define | SETUP_MODE 1 |
| #define | USER_MODE 0 |
| #define | DEVICE_AUTH_BOOT_MODE_ENABLE 1 |
| #define | DEVICE_AUTH_BOOT_MODE_DISABLE 0 |
| #define | EFI_CERT_SHA256_GUID |
| This identifies a signature containing a SHA-256 hash. More... | |
| #define | EFI_CERT_RSA2048_GUID |
| This identifies a signature containing an RSA-2048 key. More... | |
| #define | EFI_CERT_RSA2048_SHA256_GUID |
| This identifies a signature containing a RSA-2048 signature of a SHA-256 hash. More... | |
| #define | EFI_CERT_SHA1_GUID |
| This identifies a signature containing a SHA-1 hash. More... | |
| #define | EFI_CERT_SM3_GUID |
| This identifies a signature containing a SM3 hash. More... | |
| #define | EFI_CERT_RSA2048_SHA1_GUID |
| TThis identifies a signature containing a RSA-2048 signature of a SHA-1 hash. More... | |
| #define | EFI_CERT_X509_GUID |
| This identifies a signature based on an X.509 certificate. More... | |
| #define | EFI_CERT_X509_SM3_GUID |
| This identifies a signature containing the SM3 hash of an X.509 certificate's To-Be-Signed contents, and a time of revocation. More... | |
| #define | EFI_CERT_SHA224_GUID |
| This identifies a signature containing a SHA-224 hash. More... | |
| #define | EFI_CERT_SHA384_GUID |
| This identifies a signature containing a SHA-384 hash. More... | |
| #define | EFI_CERT_SHA512_GUID |
| This identifies a signature containing a SHA-512 hash. More... | |
| #define | EFI_CERT_X509_SHA256_GUID |
| This identifies a signature containing the SHA256 hash of an X.509 certificate's To-Be-Signed contents, and a time of revocation. More... | |
| #define | EFI_CERT_X509_SHA384_GUID |
| This identifies a signature containing the SHA384 hash of an X.509 certificate's To-Be-Signed contents, and a time of revocation. More... | |
| #define | EFI_CERT_X509_SHA512_GUID |
| This identifies a signature containing the SHA512 hash of an X.509 certificate's To-Be-Signed contents, and a time of revocation. More... | |
| #define | EFI_CERT_TYPE_PKCS7_GUID |
| This identifies a signature containing a DER-encoded PKCS #7 version 1.5 [RFC2315] SignedData value. More... | |
| #define | EFI_IMAGE_EXECUTION_AUTHENTICATION 0x00000007 |
| #define | EFI_IMAGE_EXECUTION_AUTH_UNTESTED 0x00000000 |
| #define | EFI_IMAGE_EXECUTION_AUTH_SIG_FAILED 0x00000001 |
| #define | EFI_IMAGE_EXECUTION_AUTH_SIG_PASSED 0x00000002 |
| #define | EFI_IMAGE_EXECUTION_AUTH_SIG_NOT_FOUND 0x00000003 |
| #define | EFI_IMAGE_EXECUTION_AUTH_SIG_FOUND 0x00000004 |
| #define | EFI_IMAGE_EXECUTION_POLICY_FAILED 0x00000005 |
| #define | EFI_IMAGE_EXECUTION_INITIALIZED 0x00000008 |
Typedefs | |
| typedef UINT8 | EFI_SM3_HASH[32] |
| typedef UINT32 | EFI_IMAGE_EXECUTION_ACTION |
Functions | |
| FILE_LICENCE (BSD2_PATENT) | |
| FILE_SECBOOT (PERMITTED) | |
Image signature database are defined for the signed image validation.
Copyright (c) 2009 - 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ImageAuthentication.h.
| #define EFI_IMAGE_SECURITY_DATABASE_GUID |
Definition at line 20 of file ImageAuthentication.h.
| #define EFI_IMAGE_SECURITY_DATABASE L"db" |
Varialbe name with guid EFI_IMAGE_SECURITY_DATABASE_GUID for the authorized signature database.
Definition at line 29 of file ImageAuthentication.h.
| #define EFI_IMAGE_SECURITY_DATABASE1 L"dbx" |
Varialbe name with guid EFI_IMAGE_SECURITY_DATABASE_GUID for the forbidden signature database.
Definition at line 34 of file ImageAuthentication.h.
| #define EFI_IMAGE_SECURITY_DATABASE2 L"dbt" |
Variable name with guid EFI_IMAGE_SECURITY_DATABASE_GUID for the timestamp signature database.
Definition at line 39 of file ImageAuthentication.h.
| #define SECURE_BOOT_MODE_ENABLE 1 |
Definition at line 41 of file ImageAuthentication.h.
| #define SECURE_BOOT_MODE_DISABLE 0 |
Definition at line 42 of file ImageAuthentication.h.
| #define SETUP_MODE 1 |
Definition at line 44 of file ImageAuthentication.h.
| #define USER_MODE 0 |
Definition at line 45 of file ImageAuthentication.h.
| #define DEVICE_AUTH_BOOT_MODE_ENABLE 1 |
Definition at line 47 of file ImageAuthentication.h.
| #define DEVICE_AUTH_BOOT_MODE_DISABLE 0 |
Definition at line 48 of file ImageAuthentication.h.
| #define EFI_CERT_SHA256_GUID |
This identifies a signature containing a SHA-256 hash.
The SignatureHeader size shall always be 0. The SignatureSize shall always be 16 (size of SignatureOwner component) + 32 bytes.
Definition at line 149 of file ImageAuthentication.h.
| #define EFI_CERT_RSA2048_GUID |
This identifies a signature containing an RSA-2048 key.
The key (only the modulus since the public key exponent is known to be 0x10001) shall be stored in big-endian order. The SignatureHeader size shall always be 0. The SignatureSize shall always be 16 (size of SignatureOwner component) + 256 bytes.
Definition at line 161 of file ImageAuthentication.h.
| #define EFI_CERT_RSA2048_SHA256_GUID |
This identifies a signature containing a RSA-2048 signature of a SHA-256 hash.
The SignatureHeader size shall always be 0. The SignatureSize shall always be 16 (size of SignatureOwner component) + 256 bytes.
Definition at line 171 of file ImageAuthentication.h.
| #define EFI_CERT_SHA1_GUID |
This identifies a signature containing a SHA-1 hash.
The SignatureSize shall always be 16 (size of SignatureOwner component) + 20 bytes.
Definition at line 180 of file ImageAuthentication.h.
| #define EFI_CERT_SM3_GUID |
This identifies a signature containing a SM3 hash.
The SignatureSize shall always be 16 (size of SignatureOwner component) + 32 bytes.
Definition at line 189 of file ImageAuthentication.h.
| #define EFI_CERT_RSA2048_SHA1_GUID |
TThis identifies a signature containing a RSA-2048 signature of a SHA-1 hash.
The SignatureHeader size shall always be 0. The SignatureSize shall always be 16 (size of SignatureOwner component) + 256 bytes.
Definition at line 199 of file ImageAuthentication.h.
| #define EFI_CERT_X509_GUID |
This identifies a signature based on an X.509 certificate.
If the signature is an X.509 certificate then verification of the signature of an image should validate the public key certificate in the image using certificate path verification, up to this X.509 certificate as a trusted root. The SignatureHeader size shall always be 0. The SignatureSize may vary but shall always be 16 (size of the SignatureOwner component) + the size of the certificate itself. Note: This means that each certificate will normally be in a separate EFI_SIGNATURE_LIST.
Definition at line 213 of file ImageAuthentication.h.
| #define EFI_CERT_X509_SM3_GUID |
This identifies a signature containing the SM3 hash of an X.509 certificate's To-Be-Signed contents, and a time of revocation.
The SignatureHeader size shall always be 0. The SignatureSize shall always be 16 (size of the SignatureOwner component) + 32 bytes for an EFI_CERT_X509_SM3 structure. If the TimeOfRevocation is non-zero, the certificate should be considered to be revoked from that time and onwards, and otherwise the certificate shall be considered to always be revoked.
Definition at line 226 of file ImageAuthentication.h.
| #define EFI_CERT_SHA224_GUID |
This identifies a signature containing a SHA-224 hash.
The SignatureHeader size shall always be 0. The SignatureSize shall always be 16 (size of SignatureOwner component) + 28 bytes.
Definition at line 236 of file ImageAuthentication.h.
| #define EFI_CERT_SHA384_GUID |
This identifies a signature containing a SHA-384 hash.
The SignatureHeader size shall always be 0. The SignatureSize shall always be 16 (size of SignatureOwner component) + 48 bytes.
Definition at line 246 of file ImageAuthentication.h.
| #define EFI_CERT_SHA512_GUID |
This identifies a signature containing a SHA-512 hash.
The SignatureHeader size shall always be 0. The SignatureSize shall always be 16 (size of SignatureOwner component) + 64 bytes.
Definition at line 256 of file ImageAuthentication.h.
| #define EFI_CERT_X509_SHA256_GUID |
This identifies a signature containing the SHA256 hash of an X.509 certificate's To-Be-Signed contents, and a time of revocation.
The SignatureHeader size shall always be 0. The SignatureSize shall always be 16 (size of the SignatureOwner component)
Definition at line 269 of file ImageAuthentication.h.
| #define EFI_CERT_X509_SHA384_GUID |
This identifies a signature containing the SHA384 hash of an X.509 certificate's To-Be-Signed contents, and a time of revocation.
The SignatureHeader size shall always be 0. The SignatureSize shall always be 16 (size of the SignatureOwner component)
Definition at line 282 of file ImageAuthentication.h.
| #define EFI_CERT_X509_SHA512_GUID |
This identifies a signature containing the SHA512 hash of an X.509 certificate's To-Be-Signed contents, and a time of revocation.
The SignatureHeader size shall always be 0. The SignatureSize shall always be 16 (size of the SignatureOwner component)
Definition at line 295 of file ImageAuthentication.h.
| #define EFI_CERT_TYPE_PKCS7_GUID |
This identifies a signature containing a DER-encoded PKCS #7 version 1.5 [RFC2315] SignedData value.
Definition at line 304 of file ImageAuthentication.h.
| #define EFI_IMAGE_EXECUTION_AUTHENTICATION 0x00000007 |
Definition at line 314 of file ImageAuthentication.h.
| #define EFI_IMAGE_EXECUTION_AUTH_UNTESTED 0x00000000 |
Definition at line 315 of file ImageAuthentication.h.
| #define EFI_IMAGE_EXECUTION_AUTH_SIG_FAILED 0x00000001 |
Definition at line 316 of file ImageAuthentication.h.
| #define EFI_IMAGE_EXECUTION_AUTH_SIG_PASSED 0x00000002 |
Definition at line 317 of file ImageAuthentication.h.
| #define EFI_IMAGE_EXECUTION_AUTH_SIG_NOT_FOUND 0x00000003 |
Definition at line 318 of file ImageAuthentication.h.
| #define EFI_IMAGE_EXECUTION_AUTH_SIG_FOUND 0x00000004 |
Definition at line 319 of file ImageAuthentication.h.
| #define EFI_IMAGE_EXECUTION_POLICY_FAILED 0x00000005 |
Definition at line 320 of file ImageAuthentication.h.
| #define EFI_IMAGE_EXECUTION_INITIALIZED 0x00000008 |
Definition at line 321 of file ImageAuthentication.h.
| typedef UINT8 EFI_SM3_HASH[32] |
Definition at line 129 of file ImageAuthentication.h.
| typedef UINT32 EFI_IMAGE_EXECUTION_ACTION |
Definition at line 312 of file ImageAuthentication.h.
| FILE_LICENCE | ( | BSD2_PATENT | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
| EFI_GUID gEfiImageSecurityDatabaseGuid |
| EFI_GUID gEfiCertSha256Guid |
| EFI_GUID gEfiCertRsa2048Guid |
| EFI_GUID gEfiCertRsa2048Sha256Guid |
| EFI_GUID gEfiCertSha1Guid |
| EFI_GUID gEfiCertRsa2048Sha1Guid |
| EFI_GUID gEfiCertX509Guid |
| EFI_GUID gEfiCertSha224Guid |
| EFI_GUID gEfiCertSha384Guid |
| EFI_GUID gEfiCertSha512Guid |
| EFI_GUID gEfiCertX509Sha256Guid |
| EFI_GUID gEfiCertX509Sha384Guid |
| EFI_GUID gEfiCertX509Sha512Guid |
| EFI_GUID gEfiCertPkcs7Guid |
| EFI_GUID gEfiCertSm3Guid |
| EFI_GUID gEfiCertX509Sm3Guid |
1.8.15