From 11e1d18d7d73810dab4d0d2e367d4be324c9d860 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 19 Nov 2023 18:17:51 +0100 Subject: [PATCH] pe(certificate_table): add EFI certificate types We forgot those but they come handy in the UEFI ecosystem when you are reading UEFI signature lists. --- src/pe/certificate_table.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pe/certificate_table.rs b/src/pe/certificate_table.rs index ecf8b2863..aedd7da4a 100644 --- a/src/pe/certificate_table.rs +++ b/src/pe/certificate_table.rs @@ -52,6 +52,10 @@ pub enum AttributeCertificateType { Reserved1 = 0x0003, /// WIN_CERT_TYPE_TS_STACK_SIGNED TsStackSigned = 0x0004, + /// WIN_CERT_TYPE_EFI_PKCS115 + EfiPkcs115 = 0xEF0, + /// WIN_CERT_TYPE_EFI_GUID + EfiGuid = 0x0EF1, } impl TryFrom for AttributeCertificateType {