11#ifndef __EFI_WIN_CERTIFICATE_H__
12#define __EFI_WIN_CERTIFICATE_H__
20#define WIN_CERT_TYPE_PKCS_SIGNED_DATA 0x0002
21#define WIN_CERT_TYPE_EFI_PKCS115 0x0EF0
22#define WIN_CERT_TYPE_EFI_GUID 0x0EF1
55#define EFI_CERT_TYPE_RSA2048_SHA256_GUID \
56 {0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } }
unsigned short UINT16
2-byte unsigned value.
unsigned char UINT8
1-byte unsigned value.
unsigned int UINT32
4-byte unsigned value.
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
EFI_GUID gEfiCertTypeRsa2048Sha256Guid
#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.
WIN_CERTIFICATE_UEFI_GUID.CertData.
Certificate which encapsulates the RSASSA_PKCS1-v1_5 digital signature.
WIN_CERTIFICATE Hdr
This is the standard WIN_CERTIFICATE header, where wCertificateType is set to WIN_CERT_TYPE_UEFI_PKCS...
EFI_GUID HashAlgorithm
This is the hashing algorithm which was performed on the UEFI executable when creating the digital si...
Certificate which encapsulates a GUID-specific digital signature.
UINT8 CertData[1]
The following is the certificate data.
WIN_CERTIFICATE Hdr
This is the standard WIN_CERTIFICATE header, where wCertificateType is set to WIN_CERT_TYPE_EFI_GUID.
EFI_GUID CertType
This is the unique id which determines the format of the CertData.
The WIN_CERTIFICATE structure is part of the PE/COFF specification.
UINT16 wRevision
The revision level of the WIN_CERTIFICATE structure.
UINT32 dwLength
The length of the entire certificate, including the length of the header, in bytes.
UINT16 wCertificateType
The certificate type.