Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/tpm2/
H A 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 …]
H A DMakefile5 TEST_PROGS_EXTENDED := tpm2.py tpm2_tests.py
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm1.c709 int tpm2; in getoptions()
711 tpm2 = tpm_is_tpm2(chip); in getoptions()
712 if (tpm2 < 0) in getoptions()
713 return tpm2; in getoptions()
715 opt->hash = tpm2 ? HASH_ALGO_SHA256 : HASH_ALGO_SHA1; in getoptions()
770 if (tpm2 && opt->blobauth_len <= sizeof(opt->blobauth)) { in getoptions()
803 if (!tpm2 && i != HASH_ALGO_SHA1) { in getoptions()
810 if (!tpm2 || strlen(args[0].from) != (2 * digest_len)) in getoptions()
819 if (!tpm2) in getoptions()
836 int tpm2; in trusted_options_alloc()
708 int tpm2; getoptions() local
835 int tpm2; trusted_options_alloc() local
856 int tpm2; trusted_tpm_seal() local
901 int tpm2; trusted_tpm_unseal() local
[all...]
/linux/drivers/firmware/efi/libstub/
H A Dtpm.c157 efi_tcg2_protocol_t *tpm2 = NULL; in efi_retrieve_eventlog() local
161 status = efi_bs_call(locate_protocol, &tpm2_guid, NULL, (void **)&tpm2); in efi_retrieve_eventlog()
163 status = efi_call_proto(tpm2, get_event_log, version, &log_location, in efi_retrieve_eventlog()
168 status = efi_call_proto(tpm2, get_event_log, version, in efi_retrieve_eventlog()
/linux/tools/testing/selftests/
H A DMakefile134 TARGETS += tpm2
/linux/
H A DMAINTAINERS27690 F: tools/testing/selftests/tpm2/