logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tpm2tss_tpm2data_write, tpm2tss_tpm2data_read – read/write TPM2_DATA

Description

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.

Name

tpm2tss_tpm2data_write, tpm2tss_tpm2data_read – read/write TPM2_DATA

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.

   SEEALSOopenssl(1)

tpm2-tss-engine                                     JUNE 2018                          tpm2tss-tpm2data_write(3)

Synopsis

#include<tpm2tss.h>

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

See Also