Searched refs:bank_alg (Results 1 – 2 of 2) sorted by relevance
/linux-5.19.10/tools/testing/selftests/tpm2/ |
D | tpm2_tests.py | 32 for bank_alg, pcrSelection in pcr_banks.items(): 34 return bank_alg 38 bank_alg = self.determine_bank_alg(1 << 16) 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) 85 bank_alg = self.determine_bank_alg(1 << 16 | 1 << 1) 86 self.assertIsNotNone(bank_alg) 95 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg) 107 ds = tpm2.get_digest_size(bank_alg) [all …]
|
D | tpm2.py | 402 def read_pcr(self, i, bank_alg = TPM2_ALG_SHA1): argument 414 bank_alg, 424 assert bank_alg == alg2 and pcrsel_len == pcrsel_len2 434 def extend_pcr(self, i, dig, bank_alg = TPM2_ALG_SHA1): argument 435 ds = get_digest_size(bank_alg) 449 1, bank_alg, dig) 470 def __calc_pcr_digest(self, pcrs, bank_alg = TPM2_ALG_SHA1, argument 476 pcr = self.read_pcr(i, bank_alg) 483 def policy_pcr(self, handle, pcrs, bank_alg = TPM2_ALG_SHA1, argument 486 dig = self.__calc_pcr_digest(pcrs, bank_alg, name_alg) [all …]
|