.\" Automatically generated by Pandoc 1.19.2.4 .\" .TH "tpm2tss\-tpm2data_write" "1" "JUNE 2018" "tpm2\-tss\-engine" "Library calls" .hy .SH NAME .PP \f[B]tpm2tss_tpm2data_write\f[], \f[B]tpm2tss_tpm2data_read\f[] \-\- read/write TPM2_DATA .SH SYNOPSIS .PP \f[B]#include \f[] .PP **int tpm2tss_tpm2data_read(const char *filename, TPM2_DATA \f[B]tpm2Datap);\f[] .PP \f[B]int tpm2tss_tpm2data_write(const TPM2_DATA \f[I]tpm2Data, const char \f[]filename);\f[] .SH DESCRIPTION .PP \f[B]tpm2tss_tpm2data_read\f[] reads the TPM2_DATA object from a file called \f[C]filename\f[], allocates memory and stores it under the parameter \f[C]tpm2Datap\f[]. Must be freed using the \f[C]free()\f[] function. .PP \f[B]tpm2tss_tpm2data_write\f[] writes the TPM2_DATA object from the parameter \f[C]tpm2Data\f[] to a newly created file called \f[C]filename\f[]. .SH RETURN VALUE .PP Upon successful completion \f[B]tpm2tss_tpm2data_write\f[]() and \f[B]tpm2tss_tpm2data_read\f[]() return 1. Otherwise 0. .SS AUTHOR .PP Written by Andreas Fuchs. .SS COPYRIGHT .PP tpm2tss is Copyright (C) 2018 Fraunhofer SIT sponsored by Infineon Technologies AG. License BSD 3\-clause. .SS SEE ALSO .PP openssl(1)