//\r
// _WIN_CERTIFICATE.wCertificateType\r
//\r
-#define WIN_CERT_TYPE_PKCS_SIGNED_DATA 0x0002\r
-#define WIN_CERT_TYPE_EFI_PKCS115 0x0EF0\r
-#define WIN_CERT_TYPE_EFI_GUID 0x0EF1\r
+#define WIN_CERT_TYPE_PKCS_SIGNED_DATA 0x0002\r
+#define WIN_CERT_TYPE_EFI_PKCS115 0x0EF0\r
+#define WIN_CERT_TYPE_EFI_GUID 0x0EF1\r
\r
///\r
/// The WIN_CERTIFICATE structure is part of the PE/COFF specification.\r
/// The length of the entire certificate,\r
/// including the length of the header, in bytes.\r
///\r
- UINT32 dwLength;\r
+ UINT32 dwLength;\r
///\r
/// The revision level of the WIN_CERTIFICATE\r
/// structure. The current revision level is 0x0200.\r
///\r
- UINT16 wRevision;\r
+ UINT16 wRevision;\r
///\r
/// The certificate type. See WIN_CERT_TYPE_xxx for the UEFI\r
/// certificate types. The UEFI specification reserves the range of\r
/// certificate type values from 0x0EF0 to 0x0EFF.\r
///\r
- UINT16 wCertificateType;\r
+ UINT16 wCertificateType;\r
///\r
/// The following is the actual certificate. The format of\r
/// the certificate depends on wCertificateType.\r
/// WIN_CERTIFICATE_UEFI_GUID.CertData\r
///\r
typedef struct {\r
- EFI_GUID HashType;\r
- UINT8 PublicKey[256];\r
- UINT8 Signature[256];\r
+ EFI_GUID HashType;\r
+ UINT8 PublicKey[256];\r
+ UINT8 Signature[256];\r
} EFI_CERT_BLOCK_RSA_2048_SHA256;\r
\r
-\r
///\r
/// Certificate which encapsulates a GUID-specific digital signature\r
///\r
/// This is the standard WIN_CERTIFICATE header, where\r
/// wCertificateType is set to WIN_CERT_TYPE_EFI_GUID.\r
///\r
- WIN_CERTIFICATE Hdr;\r
+ WIN_CERTIFICATE Hdr;\r
///\r
/// This is the unique id which determines the\r
/// format of the CertData. .\r
///\r
- EFI_GUID CertType;\r
+ EFI_GUID CertType;\r
///\r
/// The following is the certificate data. The format of\r
/// the data is determined by the CertType.\r
/// If CertType is EFI_CERT_TYPE_RSA2048_SHA256_GUID,\r
/// the CertData will be EFI_CERT_BLOCK_RSA_2048_SHA256 structure.\r
///\r
- UINT8 CertData[1];\r
+ UINT8 CertData[1];\r
} WIN_CERTIFICATE_UEFI_GUID;\r
\r
-\r
///\r
/// Certificate which encapsulates the RSASSA_PKCS1-v1_5 digital signature.\r
///\r
/// This is the standard WIN_CERTIFICATE header, where\r
/// wCertificateType is set to WIN_CERT_TYPE_UEFI_PKCS1_15.\r
///\r
- WIN_CERTIFICATE Hdr;\r
+ WIN_CERTIFICATE Hdr;\r
///\r
/// This is the hashing algorithm which was performed on the\r
/// UEFI executable when creating the digital signature.\r
///\r
- EFI_GUID HashAlgorithm;\r
+ EFI_GUID HashAlgorithm;\r
///\r
/// The following is the actual digital signature. The\r
/// size of the signature is the same size as the key\r
///\r
} WIN_CERTIFICATE_EFI_PKCS1_15;\r
\r
-extern EFI_GUID gEfiCertTypeRsa2048Sha256Guid;\r
+extern EFI_GUID gEfiCertTypeRsa2048Sha256Guid;\r
\r
#endif\r