/system/tpm/trunks/ |
D | error_codes.cc | 27 const trunks::TPM_RC kFormatOneErrorMask = 0x0BF; 29 const trunks::TPM_RC kFormatOneSubjectMask = 0x700; 30 const trunks::TPM_RC kLayerMask = 0xFFFFF000; 33 std::string GetErrorStringInternal(trunks::TPM_RC error) { in GetErrorStringInternal() 35 case trunks::TPM_RC_SUCCESS: return "TPM_RC_SUCCESS"; in GetErrorStringInternal() 36 case trunks::TPM_RC_BAD_TAG: return "TPM_RC_BAD_TAG"; in GetErrorStringInternal() 37 case trunks::TPM_RC_INITIALIZE: return "TPM_RC_INITIALIZE"; in GetErrorStringInternal() 38 case trunks::TPM_RC_FAILURE: return "TPM_RC_FAILURE"; in GetErrorStringInternal() 39 case trunks::TPM_RC_SEQUENCE: return "TPM_RC_SEQUENCE"; in GetErrorStringInternal() 40 case trunks::TPM_RC_PRIVATE: return "TPM_RC_PRIVATE"; in GetErrorStringInternal() [all …]
|
D | trunksd.cc | 86 trunks::TrunksBinderService service; in main() 88 trunks::TrunksDBusService service; in main() 96 trunks::CommandTransceiver *low_level_transceiver; in main() 99 low_level_transceiver = new trunks::TrunksFtdiSpi(); in main() 102 low_level_transceiver = new trunks::TpmSimulatorHandle(); in main() 104 low_level_transceiver = new trunks::TpmHandle(); in main() 113 trunks::TrunksFactoryImpl factory(low_level_transceiver); in main() 114 trunks::ResourceManager resource_manager(factory, low_level_transceiver); in main() 116 FROM_HERE, base::Bind(&trunks::ResourceManager::Initialize, in main() 118 trunks::BackgroundCommandTransceiver background_transceiver( in main()
|
D | trunks_binder_proxy.cc | 34 class ResponseObserver : public android::trunks::BnTrunksClient { 36 ResponseObserver(const trunks::CommandTransceiver::ResponseCallback& callback) in ResponseObserver() 42 trunks::SendCommandResponse response_proto; in OnCommandResponse() 47 trunks::CreateErrorResponse(trunks::SAPI_RC_MALFORMED_RESPONSE)); in OnCommandResponse() 54 trunks::CommandTransceiver::ResponseCallback callback_; 59 namespace trunks { namespace 69 trunks_service_ = new android::trunks::BpTrunks(service_binder); in Init() 112 trunks::SendCommandResponse response_proto; in SendCommandAndWait() 116 return trunks::CreateErrorResponse(trunks::SAPI_RC_MALFORMED_RESPONSE); in SendCommandAndWait()
|
D | trunks_client.cc | 39 using trunks::CommandTransceiver; 40 using trunks::TrunksFactory; 72 trunks::TPM_RC result; in AllocatePCR() 74 if (result != trunks::TPM_RC_SUCCESS) { in AllocatePCR() 75 LOG(ERROR) << "Error allocating PCR:" << trunks::GetErrorString(result); in AllocatePCR() 83 trunks::TPM_RC rc; in TakeOwnership() 88 LOG(ERROR) << "Error taking ownership: " << trunks::GetErrorString(rc); in TakeOwnership() 95 scoped_ptr<trunks::TpmState> state = factory->GetTpmState(); in DumpStatus() 96 trunks::TPM_RC result = state->Initialize(); in DumpStatus() 97 if (result != trunks::TPM_RC_SUCCESS) { in DumpStatus() [all …]
|
D | trunks_dbus_proxy.cc | 37 namespace trunks { namespace 52 trunks::kTrunksServiceName, in Init() 53 dbus::ObjectPath(trunks::kTrunksServicePath)); in Init() 77 trunks::kTrunksInterface, in SendCommand() 78 trunks::kSendCommand, in SendCommand() 96 trunks::kTrunksInterface, in SendCommandAndWait() 97 trunks::kSendCommand, in SendCommandAndWait()
|
D | tpm_state_impl.cc | 28 const trunks::TPMA_PERMANENT kOwnerAuthSetMask = 1U; 29 const trunks::TPMA_PERMANENT kEndorsementAuthSetMask = 1U << 1; 30 const trunks::TPMA_PERMANENT kLockoutAuthSetMask = 1U << 2; 31 const trunks::TPMA_PERMANENT kInLockoutMask = 1U << 9; 34 const trunks::TPMA_STARTUP_CLEAR kPlatformHierarchyMask = 1U; 35 const trunks::TPMA_STARTUP_CLEAR kStorageHierarchyMask = 1U << 1; 36 const trunks::TPMA_STARTUP_CLEAR kEndorsementHierarchyMask = 1U << 2; 37 const trunks::TPMA_STARTUP_CLEAR kOrderlyShutdownMask = 1U << 31; 40 const trunks::TPMA_ALGORITHM kAsymmetricAlgMask = 1U; 44 namespace trunks { namespace
|
D | background_command_transceiver_test.cc | 45 const trunks::CommandTransceiver::ResponseCallback& callback) { in GetThreadNameAndCall() 53 void SendCommandAndWaitAndAssign(trunks::CommandTransceiver* transceiver, in SendCommandAndWaitAndAssign() 60 namespace trunks { namespace 81 trunks::BackgroundCommandTransceiver background_transceiver( in TEST_F() 95 trunks::BackgroundCommandTransceiver background_transceiver( in TEST_F()
|
D | trunks_binder_service.h | 27 namespace trunks { 53 class BinderServiceInternal : public android::trunks::BnTrunks { 61 const android::sp<android::trunks::ITrunksClient>& client) override; 67 void OnResponse(const android::sp<android::trunks::ITrunksClient>& client,
|
D | trunks_binder_service.cc | 35 trunks::SendCommandRequest request_proto; in ParseCommandProto() 46 trunks::SendCommandResponse response_proto; in CreateResponseProto() 55 namespace trunks { namespace 79 const android::sp<android::trunks::ITrunksClient>& client) { in SendCommand() 94 const android::sp<android::trunks::ITrunksClient>& client, in OnResponse()
|
D | trunks.gyp | 30 # "trunks/...". 40 'proto_out_dir': 'include/trunks', 48 'target_name': 'trunks', 111 'trunks', 140 'trunks', 175 'trunks',
|
D | session_manager.h | 27 namespace trunks { 29 const trunks::TPM_HANDLE kUninitializedHandle = 0;
|
D | trunks_binder_proxy.h | 26 namespace trunks { 46 android::sp<android::trunks::ITrunks> trunks_service_;
|
D | scoped_key_handle.cc | 25 const trunks::TPM_HANDLE kInvalidHandle = 0; 29 namespace trunks { namespace
|
D | trunks_ftdi_spi.h | 31 namespace trunks { 84 namespace trunks {
|
D | trunks_dbus_service.cc | 26 namespace trunks { namespace 32 : brillo::DBusServiceDaemon(trunks::kTrunksServiceName) {} in TrunksDBusService()
|
/system/tpm/tpm_manager/server/ |
D | tpm2_initializer_impl.cc | 37 : trunks_factory_(new trunks::TrunksFactoryImpl()), in Tpm2InitializerImpl() 42 Tpm2InitializerImpl::Tpm2InitializerImpl(trunks::TrunksFactory* factory, in Tpm2InitializerImpl() 103 trunks::TPM_RC result = trunks_factory_->GetTpmUtility()->TakeOwnership( in InitializeTpm() 105 if (result != trunks::TPM_RC_SUCCESS) { in InitializeTpm() 117 trunks::TPM_RC result = trunks_factory_->GetTpmUtility()->StirRandom( in SeedTpmRng() 119 if (result != trunks::TPM_RC_SUCCESS) { in SeedTpmRng() 127 trunks::TPM_RC result = trunks_factory_->GetTpmUtility()->GenerateRandom( in GetTpmRandomData() 129 if (result != trunks::TPM_RC_SUCCESS) { in GetTpmRandomData()
|
D | tpm2_nvram_impl.cc | 30 using trunks::GetErrorString; 31 using trunks::TPM_RC; 32 using trunks::TPM_RC_SUCCESS; 35 : trunks_factory_(new trunks::TrunksFactoryImpl()), in Tpm2NvramImpl() 41 Tpm2NvramImpl::Tpm2NvramImpl(std::unique_ptr<trunks::TrunksFactory> factory, in Tpm2NvramImpl() 152 trunks::TPMS_NV_PUBLIC nvram_public; in IsNvramDefined() 154 if (trunks::GetFormatOneError(result) == trunks::TPM_RC_HANDLE) { in IsNvramDefined() 167 trunks::TPMS_NV_PUBLIC nvram_public; in IsNvramLocked() 174 *locked = ((nvram_public.attributes & trunks::TPMA_NV_WRITELOCKED) != 0); in IsNvramLocked() 179 trunks::TPMS_NV_PUBLIC nvram_public; in GetNvramSize()
|
D | tpm2_status_impl.cc | 24 using trunks::TPM_RC; 25 using trunks::TPM_RC_SUCCESS; 30 : default_trunks_factory_(new trunks::TrunksFactoryImpl()), in Tpm2StatusImpl() 34 Tpm2StatusImpl::Tpm2StatusImpl(trunks::TrunksFactory* factory) in Tpm2StatusImpl() 80 << trunks::GetErrorString(result); in Refresh()
|
D | tpm2_status_impl.h | 34 explicit Tpm2StatusImpl(trunks::TrunksFactory* factory); 53 std::unique_ptr<trunks::TrunksFactory> default_trunks_factory_; 54 trunks::TrunksFactory* trunks_factory_; 55 scoped_ptr<trunks::TpmState> trunks_tpm_state_;
|
D | tpm2_nvram_test.cc | 40 using trunks::TPM_RC_SUCCESS; 41 using trunks::TPM_RC_FAILURE; 49 trunks::TrunksFactoryForTest* factory = new trunks::TrunksFactoryForTest(); in SetUp() 53 std::unique_ptr<trunks::TrunksFactory>(factory), in SetUp() 70 NiceMock<trunks::MockHmacSession> mock_hmac_session_; 72 NiceMock<trunks::MockTpmUtility> mock_tpm_utility_; 157 trunks::TPMS_NV_PUBLIC nvram_public; in TEST_F() 182 trunks::TPMS_NV_PUBLIC nvram_public; in TEST_F() 204 .WillOnce(Return(trunks::TPM_RC_HANDLE)); in TEST_F() 220 trunks::TPMS_NV_PUBLIC nvram_public; in TEST_F() [all …]
|
D | tpm2_initializer_test.cc | 46 trunks::TrunksFactoryForTest* factory = new trunks::TrunksFactoryForTest(); in SetUp() 58 NiceMock<trunks::MockTpmUtility> mock_tpm_utility_; 64 .WillRepeatedly(Return(trunks::TPM_RC_FAILURE)); in TEST_F() 100 .WillRepeatedly(Return(trunks::TPM_RC_FAILURE)); in TEST_F() 116 .WillRepeatedly(Return(trunks::TPM_RC_SUCCESS)); in TEST_F() 118 .WillOnce(Return(trunks::TPM_RC_SUCCESS)); in TEST_F() 147 .WillOnce(Return(trunks::TPM_RC_SUCCESS)); in TEST_F()
|
D | tpm2_nvram_impl.h | 39 Tpm2NvramImpl(std::unique_ptr<trunks::TrunksFactory> factory, 64 std::unique_ptr<trunks::TrunksFactory> trunks_factory_; 68 scoped_ptr<trunks::HmacSession> trunks_session_; 69 scoped_ptr<trunks::TpmUtility> trunks_utility_;
|
D | tpm2_status_test.cc | 28 using trunks::TPM_RC_FAILURE; 29 using trunks::TPM_RC_SUCCESS; 35 Tpm2StatusTest() : factory_(new trunks::TrunksFactoryForTest()) {} in Tpm2StatusTest() 44 NiceMock<trunks::MockTpmState> mock_tpm_state_; 45 std::unique_ptr<trunks::TrunksFactoryForTest> factory_;
|
D | tpm2_initializer_impl.h | 50 Tpm2InitializerImpl(trunks::TrunksFactory* factory, 68 std::unique_ptr<trunks::TrunksFactory> trunks_factory_;
|
/system/tpm/trunks/aidl/android/trunks/ |
D | ITrunks.aidl | 17 package android.trunks; 19 import android.trunks.ITrunksClient;
|