Implemented functions for reading and extending TPM PCR