From 9dafae0e365c9da03e7fdb39965baad880fab460 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 0dc9c5142..709a48161 100644 --- a/src/pe/certificate_table.rs +++ b/src/pe/certificate_table.rs @@ -51,6 +51,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 {