Home
last modified time | relevance | path

Searched refs:tpm_handle (Results 1 – 11 of 11) sorted by relevance

/system/tpm/tpm_manager/server/
Dtpm_initializer_impl.cc53 TSS_HTPM tpm_handle = tpm_connection_.GetTpm(); in InitializeTpm() local
54 if (tpm_handle == 0) { in InitializeTpm()
57 if (!InitializeEndorsementKey(tpm_handle) || in InitializeTpm()
58 !TakeOwnership(tpm_handle) || in InitializeTpm()
59 !InitializeSrk(tpm_handle)) { in InitializeTpm()
76 if (!ChangeOwnerPassword(tpm_handle, owner_password)) { in InitializeTpm()
82 bool TpmInitializerImpl::InitializeEndorsementKey(TSS_HTPM tpm_handle) { in InitializeEndorsementKey() argument
84 TSS_RESULT result = Tspi_TPM_GetPubEndorsementKey(tpm_handle, in InitializeEndorsementKey()
101 if (TPM_ERROR(result = Tspi_TPM_CreateEndorsementKey(tpm_handle, in InitializeEndorsementKey()
110 bool TpmInitializerImpl::TakeOwnership(TSS_HTPM tpm_handle) { in TakeOwnership() argument
[all …]
Dtpm_connection.cc49 TSS_HTPM tpm_handle; in GetTpm() local
51 &tpm_handle))) { in GetTpm()
55 return tpm_handle; in GetTpm()
59 TSS_HTPM tpm_handle = GetTpm(); in GetTpmWithAuth() local
60 if (tpm_handle == 0) { in GetTpmWithAuth()
65 if (TPM_ERROR(result = Tspi_GetPolicyObject(tpm_handle, in GetTpmWithAuth()
79 return tpm_handle; in GetTpmWithAuth()
Dtpm_initializer_impl.h58 bool InitializeEndorsementKey(TSS_HTPM tpm_handle);
63 bool TakeOwnership(TSS_HTPM tpm_handle);
68 bool InitializeSrk(TSS_HTPM tpm_handle);
74 bool ChangeOwnerPassword(TSS_HTPM tpm_handle,
Dtpm_status_impl.cc95 TSS_HTPM tpm_handle = tpm_connection_.GetTpm(); in GetCapability() local
96 if (tpm_handle == 0) { in GetCapability()
102 tpm_handle, capability, sizeof(uint32_t), in GetCapability()
/system/tpm/trunks/
Dresource_manager.cc127 TPM_HANDLE tpm_handle; in SendCommandAndWait() local
128 result = ProcessInputHandle(command_info, handle, &tpm_handle); in SendCommandAndWait()
132 updated_handles.push_back(tpm_handle); in SendCommandAndWait()
213 info.tpm_handle) == sessions_to_retain.end()) { in ChooseSessionToEvict()
237 virtual_object_handles_[flushed_handle].tpm_handle); in CleanupFlushedHandle()
311 result = factory_.GetTpm()->FlushContextSync(info.tpm_handle, nullptr); in EvictObjects()
317 tpm_object_handles_.erase(info.tpm_handle); in EvictObjects()
318 VLOG(1) << "EVICT_OBJECT: " << std::hex << info.tpm_handle; in EvictObjects()
472 &handle_info->tpm_handle, in LoadContext()
717 actual_handle = iter->second.tpm_handle; in ProcessFlushContext()
[all …]
Dresource_manager_test.cc311 TPM_HANDLE tpm_handle = kArbitraryObjectHandle; in TEST_F() local
312 TPM_HANDLE virtual_handle = LoadHandle(tpm_handle); in TEST_F()
320 std::vector<TPM_HANDLE> expected_input_handles = {tpm_handle}; in TEST_F()
336 TPM_HANDLE tpm_handle = kArbitraryObjectHandle; in TEST_F() local
337 TPM_HANDLE virtual_handle = LoadHandle(tpm_handle); in TEST_F()
345 Serialize_TPM_HANDLE(tpm_handle, &expected_parameters); in TEST_F()
369 virtual_handle = LoadHandle(tpm_handle); in TEST_F()
371 Serialize_TPM_HANDLE(tpm_handle, &parameters); in TEST_F()
382 TPM_HANDLE tpm_handle = kArbitraryObjectHandle; in TEST_F() local
383 TPM_HANDLE virtual_handle = LoadHandle(tpm_handle); in TEST_F()
[all …]
Dresource_manager.h87 TPM_HANDLE tpm_handle; member
Dtrunks.gyp119 'tpm_handle.cc',
DAndroid.mk115 tpm_handle.cc \
/system/tpm/attestation/common/
Dtpm_utility_v1.h72 TSS_HTPM* tpm_handle);
Dtpm_utility_v1.cc119 TSS_HTPM tpm_handle; in ActivateIdentity() local
121 &context_handle, &tpm_handle)) { in ActivateIdentity()
154 result = Tspi_TPM_ActivateIdentity(tpm_handle, identity_key, in ActivateIdentity()