tpm2tss_tpm2data_read(3)

tpm2tss_tpm2data_read3

Read/write tpm2_data

Usage

#include <tpm2tss.h>

**int tpm2tss_tpm2data_read(const char *filename, TPM2_DATA tpm2Datap);

int tpm2tss_tpm2data_write(const TPM2_DATA tpm2Data, const char filename);

Overview

tpm2tss_tpm2data_read reads the TPM2_DATA object from a file called filename, allocates memory and stores it under the parameter tpm2Datap. Must be freed using the free() function.

tpm2tss_tpm2data_write writes the TPM2_DATA object from the parameter tpm2Data to a newly created file called filename.

Return value

Upon successful completion tpm2tss_tpm2data_write() and tpm2tss_tpm2data_read() return 1. Otherwise 0.

Author

Written by Andreas Fuchs.

Copyright

tpm2tss is Copyright (C) 2018 Fraunhofer SIT sponsored by Infineon Technologies AG. License BSD 3-clause.

See also

openssl(1)

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

From tpm2-tss-engine 1.2.0-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.