Home
last modified time | relevance | path

Searched refs:TPM_HANDLE (Results 1 – 25 of 32) sorted by relevance

12

/system/tpm/trunks/
Dresource_manager.h74 std::vector<TPM_HANDLE> handles;
75 std::vector<TPM_HANDLE> session_handles;
83 void Init(TPM_HANDLE handle);
87 TPM_HANDLE tpm_handle;
99 bool ChooseSessionToEvict(const std::vector<TPM_HANDLE>& sessions_to_retain,
100 TPM_HANDLE* session_to_evict);
103 void CleanupFlushedHandle(TPM_HANDLE flushed_handle);
107 TPM_HANDLE CreateVirtualHandle();
111 TPM_HANDLE session_handle);
123 std::vector<TPM_HANDLE> ExtractHandlesFromBuffer(size_t number_of_handles,
[all …]
Dscoped_key_handle.cc25 const trunks::TPM_HANDLE kInvalidHandle = 0;
36 TPM_HANDLE handle) in ScopedKeyHandle()
46 TPM_HANDLE ScopedKeyHandle::release() { in release()
47 TPM_HANDLE tmp_handle = handle_; in release()
52 void ScopedKeyHandle::reset(TPM_HANDLE new_handle) { in reset()
53 TPM_HANDLE tmp_handle = handle_; in reset()
64 TPM_HANDLE* ScopedKeyHandle::ptr() { in ptr()
68 TPM_HANDLE ScopedKeyHandle::get() const { in get()
72 void ScopedKeyHandle::FlushHandleContext(TPM_HANDLE handle) { in FlushHandleContext()
Dscoped_key_handle.h34 ScopedKeyHandle(const TrunksFactory& factory, TPM_HANDLE handle);
40 virtual TPM_HANDLE release();
44 virtual void reset(TPM_HANDLE new_handle);
54 virtual TPM_HANDLE* ptr();
59 virtual TPM_HANDLE get() const;
63 TPM_HANDLE handle_;
64 void FlushHandleContext(TPM_HANDLE handle);
Dmock_tpm_utility.h48 MOCK_METHOD6(AsymmetricEncrypt, TPM_RC(TPM_HANDLE,
54 MOCK_METHOD6(AsymmetricDecrypt, TPM_RC(TPM_HANDLE,
60 MOCK_METHOD6(Sign, TPM_RC(TPM_HANDLE,
66 MOCK_METHOD6(Verify, TPM_RC(TPM_HANDLE,
72 MOCK_METHOD2(CertifyCreation, TPM_RC(TPM_HANDLE,
74 MOCK_METHOD4(ChangeKeyAuthorizationData, TPM_RC(TPM_HANDLE,
97 TPM_HANDLE*));
98 MOCK_METHOD2(GetKeyName, TPM_RC(TPM_HANDLE, std::string*));
99 MOCK_METHOD2(GetKeyPublicArea, TPM_RC(TPM_HANDLE, TPMT_PUBLIC*));
Dscoped_key_handle_test.cc52 TPM_HANDLE handle = TPM_RH_FIRST; in TEST_F()
59 TPM_HANDLE handle = TPM_RH_FIRST; in TEST_F()
65 TPM_HANDLE handle = TPM_RH_FIRST; in TEST_F()
72 TPM_HANDLE old_handle = TPM_RH_FIRST; in TEST_F()
73 TPM_HANDLE new_handle = TPM_RH_NULL; in TEST_F()
85 TPM_HANDLE handle = TPM_RH_FIRST; in TEST_F()
Dresource_manager.cc34 const trunks::TPM_HANDLE kMaxVirtualHandle =
125 std::vector<TPM_HANDLE> updated_handles; in SendCommandAndWait()
127 TPM_HANDLE tpm_handle; in SendCommandAndWait()
194 std::vector<TPM_HANDLE> virtual_handles; in SendCommandAndWait()
204 const std::vector<TPM_HANDLE>& sessions_to_retain, in ChooseSessionToEvict()
205 TPM_HANDLE* session_to_evict) { in ChooseSessionToEvict()
207 std::vector<TPM_HANDLE> candidates; in ChooseSessionToEvict()
224 [this](TPM_HANDLE a, TPM_HANDLE b) { in ChooseSessionToEvict()
232 void ResourceManager::CleanupFlushedHandle(TPM_HANDLE flushed_handle) { in CleanupFlushedHandle()
261 TPM_HANDLE ResourceManager::CreateVirtualHandle() { in CreateVirtualHandle()
[all …]
Dresource_manager_test.cc43 const trunks::TPM_HANDLE kArbitraryObjectHandle = trunks::TRANSIENT_FIRST + 25;
44 const trunks::TPM_HANDLE kArbitrarySessionHandle = trunks::HMAC_SESSION_FIRST;
69 const std::vector<TPM_HANDLE> kNoHandles;
82 const std::vector<TPM_HANDLE>& handles, in CreateCommand()
103 const std::vector<TPM_HANDLE>& handles, in CreateResponse()
123 std::string CreateCommandAuthorization(TPM_HANDLE handle, in CreateCommandAuthorization()
152 TPM_HANDLE LoadHandle(TPM_HANDLE handle) { in LoadHandle()
153 std::vector<TPM_HANDLE> input_handles = {PERSISTENT_FIRST}; in LoadHandle()
158 std::vector<TPM_HANDLE> output_handles = {handle}; in LoadHandle()
167 TPM_HANDLE virtual_handle; in LoadHandle()
[all …]
Dtpm_utility.h110 virtual TPM_RC AsymmetricEncrypt(TPM_HANDLE key_handle,
122 virtual TPM_RC AsymmetricDecrypt(TPM_HANDLE key_handle,
136 virtual TPM_RC Sign(TPM_HANDLE key_handle,
150 virtual TPM_RC Verify(TPM_HANDLE key_handle,
161 virtual TPM_RC CertifyCreation(TPM_HANDLE key_handle,
170 virtual TPM_RC ChangeKeyAuthorizationData(TPM_HANDLE key_handle,
218 TPM_HANDLE* key_handle) = 0;
222 virtual TPM_RC GetKeyName(TPM_HANDLE handle, std::string* name) = 0;
225 virtual TPM_RC GetKeyPublicArea(TPM_HANDLE handle,
Dtpm_utility_impl.h60 TPM_RC AsymmetricEncrypt(TPM_HANDLE key_handle,
66 TPM_RC AsymmetricDecrypt(TPM_HANDLE key_handle,
72 TPM_RC Sign(TPM_HANDLE key_handle,
78 TPM_RC Verify(TPM_HANDLE key_handle,
84 TPM_RC CertifyCreation(TPM_HANDLE key_handle,
86 TPM_RC ChangeKeyAuthorizationData(TPM_HANDLE key_handle,
109 TPM_HANDLE* key_handle) override;
110 TPM_RC GetKeyName(TPM_HANDLE handle, std::string* name) override;
111 TPM_RC GetKeyPublicArea(TPM_HANDLE handle,
Dsession_manager_test.cc51 void SetHandle(TPM_HANDLE handle) { in SetHandle()
82 TPM_HANDLE handle = TPM_RH_FIRST; in TEST_F()
90 TPM_HANDLE handle = kUninitializedHandle; in TEST_F()
98 TPM_HANDLE handle = TPM_RH_FIRST; in TEST_F()
112 TPM_HANDLE handle = TPM_RH_FIRST; in TEST_F()
158 TPM_HANDLE handle = TPM_RH_FIRST; in TEST_F()
Dsession_manager.h29 const trunks::TPM_HANDLE kUninitializedHandle = 0;
49 virtual TPM_HANDLE GetSessionHandle() const = 0;
Dhmac_authorization_delegate.h83 bool InitSession(TPM_HANDLE session_handle,
109 TPM_HANDLE session_handle() const { in session_handle()
145 TPM_HANDLE session_handle_;
Dsession_manager_impl.h40 TPM_HANDLE GetSessionHandle() const override { return session_handle_; } in GetSessionHandle()
63 TPM_HANDLE session_handle_;
Dtpm_utility_test.cc89 void SetExistingKeyHandleExpectation(TPM_HANDLE handle) { in SetExistingKeyHandleExpectation()
425 TPM_HANDLE pcr_handle = HR_PCR + 1; in TEST_F()
443 TPM_HANDLE pcr_handle = HR_PCR + pcr_index; in TEST_F()
487 TPM_HANDLE key_handle; in TEST_F()
516 TPM_HANDLE key_handle; in TEST_F()
538 TPM_HANDLE key_handle = TPM_RH_FIRST; in TEST_F()
556 TPM_HANDLE key_handle; in TEST_F()
586 TPM_HANDLE key_handle; in TEST_F()
615 TPM_HANDLE key_handle; in TEST_F()
645 TPM_HANDLE key_handle; in TEST_F()
[all …]
Dtrunks_factory_for_test.cc174 TPM_RC AsymmetricEncrypt(TPM_HANDLE key_handle, in AsymmetricEncrypt()
188 TPM_RC AsymmetricDecrypt(TPM_HANDLE key_handle, in AsymmetricDecrypt()
202 TPM_RC Sign(TPM_HANDLE key_handle, in Sign()
216 TPM_RC Verify(TPM_HANDLE key_handle, in Verify()
226 TPM_RC CertifyCreation(TPM_HANDLE key_handle, in CertifyCreation()
231 TPM_RC ChangeKeyAuthorizationData(TPM_HANDLE key_handle, in ChangeKeyAuthorizationData()
271 TPM_HANDLE* key_handle) override { in LoadKey()
275 TPM_RC GetKeyName(TPM_HANDLE handle, std::string* name) override { in GetKeyName()
279 TPM_RC GetKeyPublicArea(TPM_HANDLE handle, in GetKeyPublicArea()
394 TPM_HANDLE GetSessionHandle() const override { in GetSessionHandle()
Dhmac_session_test.cc71 TPM_HANDLE bind_entity = TPM_RH_FIRST; in TEST_F()
80 TPM_HANDLE bind_entity = TPM_RH_FIRST; in TEST_F()
Dmock_session_manager.h33 MOCK_CONST_METHOD0(GetSessionHandle, TPM_HANDLE());
Dtrunks_client_test.cc116 TPM_HANDLE signing_key; in SignTest()
157 TPM_HANDLE decrypt_key; in DecryptTest()
187 TPM_HANDLE key_handle; in ImportTest()
215 TPM_HANDLE key_handle; in AuthChangeTest()
268 TPM_HANDLE key_handle; in VerifyKeyCreationTest()
274 TPM_HANDLE alternate_key_handle; in VerifyKeyCreationTest()
441 TPM_HANDLE key_handle; in PolicyAuthValueTest()
569 TPM_HANDLE key_handle; in PolicyAndTest()
749 TPM_HANDLE key_handle; in PolicyOrTest()
891 std::map<TPM_HANDLE, std::string> public_key_map; in ManyKeysTest()
[all …]
Dtrunks_client_test.h110 bool PerformRSAEncrpytAndDecrpyt(TPM_HANDLE key_handle,
Dhmac_authorization_delegate_test.cc41 TPM_HANDLE dummy_handle = HMAC_SESSION_FIRST; in TEST()
68 TPM_HANDLE dummy_handle = HMAC_SESSION_FIRST; in TEST()
110 TPM_HANDLE session_handle_;
Dtpm_utility_impl.cc52 std::string NameFromHandle(trunks::TPM_HANDLE handle) { in NameFromHandle()
358 TPM_HANDLE pcr_handle = HR_PCR + pcr_index; in ExtendPCR()
409 TPM_RC TpmUtilityImpl::AsymmetricEncrypt(TPM_HANDLE key_handle, in AsymmetricEncrypt()
472 TPM_RC TpmUtilityImpl::AsymmetricDecrypt(TPM_HANDLE key_handle, in AsymmetricDecrypt()
541 TPM_RC TpmUtilityImpl::Sign(TPM_HANDLE key_handle, in Sign()
620 TPM_RC TpmUtilityImpl::Verify(TPM_HANDLE key_handle, in Verify()
678 TPM_RC TpmUtilityImpl::CertifyCreation(TPM_HANDLE key_handle, in CertifyCreation()
717 TPM_HANDLE key_handle, in ChangeKeyAuthorizationData()
959 TPM_HANDLE* key_handle) { in LoadKey()
996 TPM_RC TpmUtilityImpl::GetKeyName(TPM_HANDLE handle, std::string* name) { in GetKeyName()
[all …]
Dtpm_generated.h338 #define MAX_CAP_HANDLES (MAX_CAP_DATA/sizeof(TPM_HANDLE))
372 typedef UINT32 TPM_HANDLE; typedef
385 typedef TPM_HANDLE TPMI_DH_OBJECT;
386 typedef TPM_HANDLE TPMI_DH_PERSISTENT;
387 typedef TPM_HANDLE TPMI_DH_ENTITY;
388 typedef TPM_HANDLE TPMI_DH_PCR;
389 typedef TPM_HANDLE TPMI_SH_AUTH_SESSION;
390 typedef TPM_HANDLE TPMI_SH_HMAC;
391 typedef TPM_HANDLE TPMI_SH_POLICY;
392 typedef TPM_HANDLE TPMI_DH_CONTEXT;
[all …]
Dhmac_authorization_delegate.cc211 TPM_HANDLE session_handle, in InitSession()
Dpolicy_session_test.cc77 TPM_HANDLE handle = TPM_RH_FIRST; in TEST_F()
Dmock_tpm.cc209 TPM_HANDLE* object_handle, in CreatePrimarySync()

12