=head1 NAME TPM_IO_Hash_Start - indicate the beginging of a TPM TIS hash operation TPM_IO_Hash_Data - hash the provided data TPM_IO_Hash_End - indicate the end of a TPM TIS hash operation =head1 LIBRARY TPM library (libtpms, -ltpms) =head1 SYNOPSIS B<#include > B<#include > B<#include > B B *IB<, uint32_t> IB<);> B =head1 DESCRIPTION The B function can be used by an implementation of the TPM TIS hardware interface to indicate the beginning of a hash operation. Following the TPM TIS interface specification it resets several PCRs and terminates existing transport sessions. The B function is used to send the data to be hashed to the TPM. The B function calculates the final hash and stores it in the locality 4 PCR. The 3 functions must be called in the order they were explained. The implementation of the above functions handles all TPM-internal actions such as the setting and clearing of permanent flags and PCRs and the calculation of the hash. Any functionality related to the TPM's TIS interface and the handling of flags, locality and state has to be implemented by the caller. =head1 ERRORS =over 4 =item B The function completed successfully. =item B General failure. =item B The B function was called before the TPM received a TPM_Startup command. =item B The B or B functions were called before the B function. =back For a complete list of TPM error codes please consult the include file B =head1 SEE ALSO B(3), B(3), B(3), B(3) =cut