Home
last modified time | relevance | path

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

/Linux-v6.1/tools/testing/selftests/tpm2/
Dtpm2_tests.py7 import tpm2
8 from tpm2 import ProtocolError
15 self.client = tpm2.Client()
41 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL)
57 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
82 self.assertEqual(rc, tpm2.TPM2_RC_AUTH_FAIL)
88 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL)
107 ds = tpm2.get_digest_size(bank_alg)
110 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
127 handle = self.client.start_auth_session(tpm2.TPM2_SE_POLICY)
[all …]
DMakefile5 TEST_PROGS_EXTENDED := tpm2.py tpm2_tests.py
/Linux-v6.1/security/keys/trusted-keys/
Dtrusted_tpm1.c744 int tpm2; in getoptions() local
746 tpm2 = tpm_is_tpm2(chip); in getoptions()
747 if (tpm2 < 0) in getoptions()
748 return tpm2; in getoptions()
750 opt->hash = tpm2 ? HASH_ALGO_SHA256 : HASH_ALGO_SHA1; in getoptions()
805 if (tpm2 && opt->blobauth_len <= sizeof(opt->blobauth)) { in getoptions()
838 if (!tpm2 && i != HASH_ALGO_SHA1) { in getoptions()
845 if (!tpm2 || strlen(args[0].from) != (2 * digest_len)) in getoptions()
854 if (!tpm2) in getoptions()
871 int tpm2; in trusted_options_alloc() local
[all …]
/Linux-v6.1/drivers/char/tpm/
DMakefile11 tpm-y += tpm2-cmd.o
13 tpm-y += tpm2-space.o
17 tpm-y += eventlog/tpm2.o
/Linux-v6.1/tools/testing/selftests/
D.gitignore7 tpm2/SpaceTest.log
DMakefile82 TARGETS += tpm2