diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/skiboot/libstb/tss2/tssskiboot.h | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/skiboot/libstb/tss2/tssskiboot.h')
-rw-r--r-- | roms/skiboot/libstb/tss2/tssskiboot.h | 26 |
1 files changed, 26 insertions, 0 deletions
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 <ibmtss/tss.h> + +#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 */ |