1tpm2tss-tpm2data_write(1) Library calls tpm2tss-tpm2data_write(1)
2
3
4
6 tpm2tss_tpm2data_write, tpm2tss_tpm2data_read -- read/write TPM2_DATA
7
9 #include <tpm2tss.h>
10
11 **int tpm2tss_tpm2data_read(const char *filename, TPM2_DATA tpm2Datap);
12
13 int tpm2tss_tpm2data_write(const TPM2_DATA tpm2Data, const char file‐
14 name);
15
17 tpm2tss_tpm2data_read reads the TPM2_DATA object from a file called
18 filename, allocates memory and stores it under the parameter tpm2Datap.
19 Must be freed using the free() function.
20
21 tpm2tss_tpm2data_write writes the TPM2_DATA object from the parameter
22 tpm2Data to a newly created file called filename.
23
25 Upon successful completion tpm2tss_tpm2data_write() and tpm2tss_tpm2da‐
26 ta_read() return 1. Otherwise 0.
27
28 AUTHOR
29 Written by Andreas Fuchs.
30
31 COPYRIGHT
32 tpm2tss is Copyright (C) 2018 Fraunhofer SIT sponsored by Infineon
33 Technologies AG. License BSD 3-clause.
34
35 SEE ALSO
36 openssl(1)
37
38
39
40tpm2-tss-engine JUNE 2018 tpm2tss-tpm2data_write(1)