Home
last modified time | relevance | path

Searched refs:bank_alg (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/tools/testing/selftests/tpm2/
Dtpm2_tests.py32 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 …]
Dtpm2.py406 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)
487 def policy_pcr(self, handle, pcrs, bank_alg = TPM2_ALG_SHA1, argument
490 dig = self.__calc_pcr_digest(pcrs, bank_alg, name_alg)
[all …]