Home
last modified time | relevance | path

Searched refs:tpm2 (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/tools/testing/selftests/tpm2/
Dtpm2_tests.py7 import tpm2
8 from tpm2 import ProtocolError
15 self.client = tpm2.Client()
31 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL)
47 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
71 self.assertEqual(rc, tpm2.TPM2_RC_AUTH_FAIL)
74 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL)
93 ds = tpm2.get_digest_size(tpm2.TPM2_ALG_SHA1)
96 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
113 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
[all …]
DMakefile5 TEST_PROGS_EXTENDED := tpm2.py tpm2_tests.py
/Linux-v5.4/tools/testing/selftests/
D.gitignore5 tpm2/SpaceTest.log
6 tpm2/*.pyc
DMakefile54 TARGETS += tpm2
/Linux-v5.4/drivers/char/tpm/
DMakefile11 tpm-y += tpm2-cmd.o
13 tpm-y += tpm2-space.o
17 tpm-y += eventlog/tpm2.o
/Linux-v5.4/security/keys/
Dtrusted.c757 int tpm2; in getoptions() local
759 tpm2 = tpm_is_tpm2(chip); in getoptions()
760 if (tpm2 < 0) in getoptions()
761 return tpm2; in getoptions()
763 opt->hash = tpm2 ? HASH_ALGO_SHA256 : HASH_ALGO_SHA1; in getoptions()
828 if (!tpm2 && i != HASH_ALGO_SHA1) { in getoptions()
835 if (!tpm2 || strlen(args[0].from) != (2 * digest_len)) in getoptions()
844 if (!tpm2) in getoptions()
926 int tpm2; in trusted_options_alloc() local
928 tpm2 = tpm_is_tpm2(chip); in trusted_options_alloc()
[all …]