From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- roms/skiboot/libstb/tss2/tssskiboot.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 roms/skiboot/libstb/tss2/tssskiboot.h (limited to 'roms/skiboot/libstb/tss2/tssskiboot.h') diff --git a/roms/skiboot/libstb/tss2/tssskiboot.h b/roms/skiboot/libstb/tss2/tssskiboot.h new file mode 100644 index 000000000..0b8cb74a6 --- /dev/null +++ b/roms/skiboot/libstb/tss2/tssskiboot.h @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later +/* Copyright 2020 IBM Corp. */ + +#ifndef TSSSKIBOOT_H +#define TSSSKIBOOT_H + +#include + +#define TSS_AUTH_PASSWD_LEN 32 +int tss_nv_read_public(TPMI_RH_NV_INDEX nv_index, TPMS_NV_PUBLIC *nv_public, + TPM2B_NAME *nv_name); +int tss_nv_read(TPMI_RH_NV_INDEX nv_index, void *buffer, size_t buffer_size, + uint16_t offset); +int tss_nv_write(TPMI_RH_NV_INDEX nv_index, void *buffer, size_t buffer_size, + uint16_t offset); +int tss_nv_write_lock(TPMI_RH_NV_INDEX nv_index); +int tss_nv_define_space(TPMI_RH_NV_INDEX nv_index, uint16_t data_size); +int tss_pcr_extend(TPMI_DH_PCR pcr_handle, TPMI_ALG_HASH *alg_hashes, + uint8_t hashes_count, const uint8_t **digests); +int tss_pcr_read(TPMI_DH_PCR pcr_handle, TPMI_ALG_HASH *alg_hashes, + uint8_t hashes_count); +int tss_get_random_number(void *buffer, uint16_t bytes_requested); +int tss_set_platform_auth(void); +int tss_get_defined_nv_indices(TPMI_RH_NV_INDEX **indices, size_t *count); +int tss_nv_undefine_space(TPMI_RH_NV_INDEX nv_index); +#endif /* TSSSKIBOOT_H */ -- cgit 1.2.3-korg