diff options
Diffstat (limited to 'src/pcrlock/pcrlock-firmware.h')
-rw-r--r-- | src/pcrlock/pcrlock-firmware.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/pcrlock/pcrlock-firmware.h b/src/pcrlock/pcrlock-firmware.h new file mode 100644 index 0000000..169666e --- /dev/null +++ b/src/pcrlock/pcrlock-firmware.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +#include <sys/types.h> + +#include "tpm2-event-log.h" +#include "tpm2-util.h" + +int validate_firmware_event( + const TCG_PCR_EVENT2 *event, + size_t left, + const TCG_EfiSpecIdEventAlgorithmSize *algorithms, + size_t n_algorithms, + const TCG_PCR_EVENT2 **ret_next_event, + size_t *ret_left, + const void **ret_payload, + size_t *ret_payload_size); + +int validate_firmware_header( + const void *start, + size_t size, + const TCG_EfiSpecIdEventAlgorithmSize **ret_algorithms, + size_t *ret_n_algorithms, + const TCG_PCR_EVENT2 **ret_first, + size_t *ret_left); |