Home
last modified time | relevance | path

Searched refs:tpm2 (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/tpm2/
H A Dtpm2_tests.py7 import tpm2 namespace
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
[all...]
H A DMakefile5 TEST_PROGS_EXTENDED := tpm2.py tpm2_tests.py
/kernel/linux/linux-5.10/tools/testing/selftests/tpm2/
H A Dtpm2_tests.py7 import tpm2 namespace
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)
72 self.assertEqual(rc, tpm2.TPM2_RC_AUTH_FAIL)
75 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL)
94 ds = tpm2.get_digest_size(tpm2.TPM2_ALG_SHA1)
97 handle = self.client.start_auth_session(tpm2
[all...]
H A DMakefile5 TEST_PROGS_EXTENDED := tpm2.py tpm2_tests.py
/kernel/linux/linux-6.6/security/keys/trusted-keys/
H A 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
892 int tpm2; trusted_tpm_seal() local
937 int tpm2; trusted_tpm_unseal() local
[all...]
/kernel/linux/linux-5.10/drivers/char/tpm/
H A DMakefile11 tpm-y += tpm2-cmd.o
13 tpm-y += tpm2-space.o
17 tpm-y += eventlog/tpm2.o
/kernel/linux/linux-6.6/drivers/char/tpm/
H A DMakefile11 tpm-y += tpm2-cmd.o
13 tpm-y += tpm2-space.o
17 tpm-y += eventlog/tpm2.o
/kernel/linux/linux-5.10/security/keys/trusted-keys/
H A Dtrusted_tpm1.c755 int tpm2; in getoptions() local
757 tpm2 = tpm_is_tpm2(chip); in getoptions()
758 if (tpm2 < 0) in getoptions()
759 return tpm2; in getoptions()
761 opt->hash = tpm2 ? HASH_ALGO_SHA256 : HASH_ALGO_SHA1; in getoptions()
813 if (tpm2 && opt->blobauth_len <= sizeof(opt->blobauth)) { in getoptions()
846 if (!tpm2 && i != HASH_ALGO_SHA1) { in getoptions()
853 if (!tpm2 || strlen(args[0].from) != (2 * digest_len)) in getoptions()
862 if (!tpm2) in getoptions()
944 int tpm2; in trusted_options_alloc() local
994 int tpm2; trusted_instantiate() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/
H A DMakefile66 TARGETS += tpm2
/kernel/linux/linux-6.6/tools/testing/selftests/
H A DMakefile93 TARGETS += tpm2

Completed in 5 milliseconds