in cvm-attestation/tpm_wrapper.py [0:0]
def get_pcr_quote(self, pcr_list):
tpm = Tpm()
tpm.connect()
self.log.info('Getting PCR Select')
pcr_select = self.get_pcr_select(pcr_list)
sign_handle = TPM_HANDLE(int(AIK_PUB_INDEX, 16) + 3)
self.log.info('Quoting PCR Values')
pcr_quote = tpm.Quote(sign_handle, None, TPMS_NULL_SIG_SCHEME(), pcr_select)
quote_buf = pcr_quote.quoted.toBytes()
sig_bytes = pcr_quote.signature.sig
tpm.close()
return quote_buf, sig_bytes