Searched refs:bank_alg (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/testing/selftests/tpm2/ |
H A D | tpm2_tests.py | 34 return bank_alg 39 self.assertIsNotNone(bank_alg) 48 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg) 60 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg) 86 self.assertIsNotNone(bank_alg) 95 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg) 107 ds = tpm2.get_digest_size(bank_alg) 108 self.client.extend_pcr(1, ('X' * ds).encode(), bank_alg=bank_alg) 113 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg) 125 self.client.extend_pcr(16, ('X' * ds).encode(), bank_alg=bank_alg) [all …]
|
H A D | tpm2.py | 406 def read_pcr(self, i, bank_alg = TPM2_ALG_SHA1): argument 418 bank_alg, 428 assert bank_alg == alg2 and pcrsel_len == pcrsel_len2 438 def extend_pcr(self, i, dig, bank_alg = TPM2_ALG_SHA1): argument 439 ds = get_digest_size(bank_alg) 453 1, bank_alg, dig) 474 def __calc_pcr_digest(self, pcrs, bank_alg = TPM2_ALG_SHA1, argument 480 pcr = self.read_pcr(i, bank_alg) 490 dig = self.__calc_pcr_digest(pcrs, bank_alg, name_alg) 492 raise UnknownPCRBankError(bank_alg) [all …]
|