uefi_raw/protocol/tcg/
enums.rs1newtype_enum! {
4 pub enum AlgorithmId: u16 => {
10 ERROR = 0x0000,
11 RSA = 0x0001,
12 TDES = 0x0003,
13 SHA1 = 0x0004,
14 HMAC = 0x0005,
15 AES = 0x0006,
16 MGF1 = 0x0007,
17 KEYED_HASH = 0x0008,
18 XOR = 0x000a,
19 SHA256 = 0x000b,
20 SHA384 = 0x000c,
21 SHA512 = 0x000d,
22 NULL = 0x0010,
23 SM3_256 = 0x0012,
24 SM4 = 0x0013,
25 }
28}
29
30newtype_enum! {
31 pub enum EventType: u32 => {
40 PREBOOT_CERT = 0x0000_0000,
41 POST_CODE = 0x0000_0001,
42 UNUSED = 0x0000_0002,
43 NO_ACTION = 0x0000_0003,
44 SEPARATOR = 0x0000_0004,
45 ACTION = 0x0000_0005,
46 EVENT_TAG = 0x0000_0006,
47 CRTM_CONTENTS = 0x0000_0007,
48 CRTM_VERSION = 0x0000_0008,
49 CPU_MICROCODE = 0x0000_0009,
50 PLATFORM_CONFIG_FLAGS = 0x0000_000a,
51 TABLE_OF_DEVICES = 0x0000_000b,
52 COMPACT_HASH = 0x0000_000c,
53 IPL = 0x0000_000d,
54 IPL_PARTITION_DATA = 0x0000_000e,
55 NONHOST_CODE = 0x0000_000f,
56 NONHOST_CONFIG = 0x0000_0010,
57 NONHOST_INFO = 0x0000_0011,
58 OMIT_BOOT_DEVICE_EVENTS = 0x0000_0012,
59 EFI_EVENT_BASE = 0x8000_0000,
60 EFI_VARIABLE_DRIVER_CONFIG = 0x8000_0001,
61 EFI_VARIABLE_BOOT = 0x8000_0002,
62 EFI_BOOT_SERVICES_APPLICATION = 0x8000_0003,
63 EFI_BOOT_SERVICES_DRIVER = 0x8000_0004,
64 EFI_RUNTIME_SERVICES_DRIVER = 0x8000_0005,
65 EFI_GPT_EVENT = 0x8000_0006,
66 EFI_ACTION = 0x8000_0007,
67 EFI_PLATFORM_FIRMWARE_BLOB = 0x8000_0008,
68 EFI_HANDOFF_TABLES = 0x8000_0009,
69 EFI_PLATFORM_FIRMWARE_BLOB2 = 0x8000_000a,
70 EFI_HANDOFF_TABLES2 = 0x8000_000b,
71 EFI_VARIABLE_BOOT2 = 0x8000_000c,
72 EFI_HCRTM_EVENT = 0x8000_0010,
73 EFI_VARIABLE_AUTHORITY = 0x8000_00e0,
74 EFI_SPDM_FIRMWARE_BLOB = 0x8000_00e1,
75 EFI_SPDM_FIRMWARE_CONFIG = 0x8000_00e2,
76 }
77}