/system/tpm/trunks/ |
D | resource_manager.h | 74 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 …]
|
D | scoped_key_handle.cc | 25 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()
|
D | scoped_key_handle.h | 34 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);
|
D | mock_tpm_utility.h | 48 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*));
|
D | scoped_key_handle_test.cc | 52 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()
|
D | resource_manager.cc | 34 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 …]
|
D | resource_manager_test.cc | 43 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 …]
|
D | tpm_utility.h | 110 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,
|
D | tpm_utility_impl.h | 60 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,
|
D | session_manager_test.cc | 51 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()
|
D | session_manager.h | 29 const trunks::TPM_HANDLE kUninitializedHandle = 0; 49 virtual TPM_HANDLE GetSessionHandle() const = 0;
|
D | hmac_authorization_delegate.h | 83 bool InitSession(TPM_HANDLE session_handle, 109 TPM_HANDLE session_handle() const { in session_handle() 145 TPM_HANDLE session_handle_;
|
D | session_manager_impl.h | 40 TPM_HANDLE GetSessionHandle() const override { return session_handle_; } in GetSessionHandle() 63 TPM_HANDLE session_handle_;
|
D | tpm_utility_test.cc | 89 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 …]
|
D | trunks_factory_for_test.cc | 174 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()
|
D | hmac_session_test.cc | 71 TPM_HANDLE bind_entity = TPM_RH_FIRST; in TEST_F() 80 TPM_HANDLE bind_entity = TPM_RH_FIRST; in TEST_F()
|
D | mock_session_manager.h | 33 MOCK_CONST_METHOD0(GetSessionHandle, TPM_HANDLE());
|
D | trunks_client_test.cc | 116 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 …]
|
D | trunks_client_test.h | 110 bool PerformRSAEncrpytAndDecrpyt(TPM_HANDLE key_handle,
|
D | hmac_authorization_delegate_test.cc | 41 TPM_HANDLE dummy_handle = HMAC_SESSION_FIRST; in TEST() 68 TPM_HANDLE dummy_handle = HMAC_SESSION_FIRST; in TEST() 110 TPM_HANDLE session_handle_;
|
D | tpm_utility_impl.cc | 52 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 …]
|
D | tpm_generated.h | 338 #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 …]
|
D | hmac_authorization_delegate.cc | 211 TPM_HANDLE session_handle, in InitSession()
|
D | policy_session_test.cc | 77 TPM_HANDLE handle = TPM_RH_FIRST; in TEST_F()
|
D | mock_tpm.cc | 209 TPM_HANDLE* object_handle, in CreatePrimarySync()
|