Lines Matching refs:hTpm
167 self.hTpm = c_uint32(0)
245 byref(self.hTpm)) != 0:
248 logging.info('Got tpm object from tspi context = 0x%x', self.hTpm.value)
262 result = self.tspi_lib.Tspi_TPM_GetStatus(self.hTpm, flag,
282 result = self.tspi_lib.Tspi_TPM_SetStatus(self.hTpm, flag, bValue)
291 def getPolicyObject(self, hTpm=None, hPolicy=None): argument
301 if hTpm is None:
302 hTpm = self.hTpm
308 hTpm.value, hPolicy.value)
309 result = self.tspi_lib.Tspi_GetPolicyObject(hTpm, TSS_POLICY_USAGE,
316 'hPolicy = 0x%x', hTpm.value, hPolicy.value)
369 logging.debug('Successfully set up tspi context: hTpm = %r', self.hTpm)
372 self.hTpm, TSS_TPMCAP_VERSION_VAL, 0, POINTER(c_byte)(),
404 self.hTpm.value)
406 result = self.tspi_lib.Tspi_TPM_SelfTestFull(self.hTpm)
412 self.hTpm.value)
414 self.hTpm, byref(uiResultLen), byref(pResult))
440 self.hTpm.value)
458 self.hTpm.value, flag, hSrk.value) # DEBUG
461 self.getPolicyObject(hTpm=hSrk, hPolicy=hSrkPolicy)
475 result = self.tspi_lib.Tspi_TPM_TakeOwnership(self.hTpm, hSrk,
497 logging.debug('Successfully set up tspi context: hTpm = %r', self.hTpm)
499 result = self.tspi_lib.Tspi_TPM_ClearOwner(self.hTpm, True)
527 logging.debug('Successfully set up tspi context: hTpm = %r', self.hTpm)
575 logging.debug('Successfully set up tspi context: hTpm = %r', self.hTpm)