tpm2_eventlog_yaml.h 1021 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: BSD-3-Clause */
  2. #ifndef TPM2_EVENTLOG_YAML_H
  3. #define TPM2_EVENTLOG_YAML_H
  4. #include <stdbool.h>
  5. #include <stdlib.h>
  6. #include "efi_event.h"
  7. #include "tpm2_eventlog.h"
  8. #define MIN_EVLOG_YAML_VERSION 1
  9. #define MAX_EVLOG_YAML_VERSION 2
  10. char const *eventtype_to_string (UINT32 event_type);
  11. void yaml_event2hdr(TCG_EVENT_HEADER2 const *event_hdr, size_t size);
  12. bool yaml_digest2(TCG_DIGEST2 const *digest, size_t size);
  13. char *yaml_uefi_var_unicodename(UEFI_VARIABLE_DATA *data);
  14. bool yaml_event2data(TCG_EVENT2 const *event, UINT32 type, uint32_t eventlog_version);
  15. bool yaml_digest2_callback(TCG_DIGEST2 const *digest, size_t size, void *data);
  16. bool yaml_event2hdr_callback(TCG_EVENT_HEADER2 const *event_hdr, size_t size,
  17. void *data);
  18. bool yaml_event2data_callback(TCG_EVENT2 const *event, UINT32 type, void *data,
  19. uint32_t eventlog_version);
  20. bool yaml_eventlog(UINT8 const *eventlog, size_t size, uint32_t eventlog_version);
  21. #endif