6 #ifndef IFAPI_EVENTLOG_SYSTEM_H
7 #define IFAPI_EVENTLOG_SYSTEM_H
9 #include <json-c/json.h>
10 #include "efi_event.h"
11 #include "util/aux_util.h"
13 typedef UINT32 TCG_EVENT_TYPE;
20 typedef bool (*DIGEST2_CALLBACK)(TCG_DIGEST2
const *digest,
size_t size,
22 typedef bool (*EVENT2_CALLBACK)(TCG_EVENT_HEADER2
const *event_hdr,
size_t size,
24 typedef bool (*EVENT2DATA_CALLBACK)(TCG_EVENT2
const *event, UINT32 type,
26 typedef bool (*SPECID_CALLBACK)(TCG_EVENT
const *event,
void *data);
27 typedef bool (*LOG_EVENT_CALLBACK)(TCG_EVENT
const *event_hdr,
size_t size,
32 SPECID_CALLBACK specid_cb;
33 LOG_EVENT_CALLBACK log_eventhdr_cb;
34 EVENT2_CALLBACK event2hdr_cb;
35 DIGEST2_CALLBACK digest2_cb;
36 EVENT2DATA_CALLBACK event2_cb;
41 uint32_t sm3_256_used;
42 uint8_t sha1_pcrs[TPM2_MAX_PCRS][TPM2_SHA1_DIGEST_SIZE];
43 uint8_t sha256_pcrs[TPM2_MAX_PCRS][TPM2_SHA256_DIGEST_SIZE];
44 uint8_t sha384_pcrs[TPM2_MAX_PCRS][TPM2_SHA384_DIGEST_SIZE];
45 uint8_t sha512_pcrs[TPM2_MAX_PCRS][TPM2_SHA512_DIGEST_SIZE];
46 uint8_t sm3_256_pcrs[TPM2_MAX_PCRS][TPM2_SM3_256_DIGEST_SIZE];
57 bool digest2_accumulator_callback(TCG_DIGEST2
const *digest,
size_t size,
60 bool parse_event2body(TCG_EVENT2
const *event, UINT32 type);
62 TCG_DIGEST2
const *event_hdr,
size_t count,
size_t size);
63 bool parse_event2(TCG_EVENT_HEADER2
const *eventhdr,
size_t buf_size,
64 size_t *event_size,
size_t *digests_size);
65 bool foreach_event2(
tpm2_eventlog_context *ctx, TCG_EVENT_HEADER2
const *eventhdr_start,
size_t size);
66 bool specid_event(TCG_EVENT
const *event,
size_t size, TCG_EVENT_HEADER2 **next);
70 ifapi_json_IFAPI_FIRMWARE_EVENT_deserialize(
Definition: ifapi_eventlog_system.h:51
Definition: ifapi_eventlog_system.h:15
Definition: fapi_types.h:15
Definition: ifapi_eventlog_system.h:30