/* SPDX-License-Identifier: BSD-3-Clause */ #ifndef TPM2_EVENTLOG_YAML_H #define TPM2_EVENTLOG_YAML_H #include #include #include "efi_event.h" #include "tpm2_eventlog.h" #define MIN_EVLOG_YAML_VERSION 1 #define MAX_EVLOG_YAML_VERSION 2 char const *eventtype_to_string (UINT32 event_type); void yaml_event2hdr(TCG_EVENT_HEADER2 const *event_hdr, size_t size); bool yaml_digest2(TCG_DIGEST2 const *digest, size_t size); char *yaml_uefi_var_unicodename(UEFI_VARIABLE_DATA *data); bool yaml_event2data(TCG_EVENT2 const *event, UINT32 type, uint32_t eventlog_version); bool yaml_digest2_callback(TCG_DIGEST2 const *digest, size_t size, void *data); bool yaml_event2hdr_callback(TCG_EVENT_HEADER2 const *event_hdr, size_t size, void *data); bool yaml_event2data_callback(TCG_EVENT2 const *event, UINT32 type, void *data, uint32_t eventlog_version); bool yaml_eventlog(UINT8 const *eventlog, size_t size, uint32_t eventlog_version); #endif