/system/tpm/trunks/ |
D | error_codes.h | 32 const TPM_RC kTrunksErrorBase = (7 << 12); 33 const TPM_RC kTctiErrorBase = (8 << 12); 34 const TPM_RC kSapiErrorBase = (9 << 12); 35 const TPM_RC kResourceManagerTpmErrorBase = (11 << 12); 36 const TPM_RC kResourceManagerErrorBase = (12 << 12); 38 const TPM_RC TRUNKS_RC_AUTHORIZATION_FAILED = kTrunksErrorBase + 1; 39 const TPM_RC TRUNKS_RC_ENCRYPTION_FAILED = kTrunksErrorBase + 2; 40 const TPM_RC TRUNKS_RC_READ_ERROR = kTrunksErrorBase + 3; 41 const TPM_RC TRUNKS_RC_WRITE_ERROR = kTrunksErrorBase + 4; 42 const TPM_RC TRUNKS_RC_IPC_ERROR = kTrunksErrorBase + 5; [all …]
|
D | mock_tpm_utility.h | 33 MOCK_METHOD0(Startup, TPM_RC()); 34 MOCK_METHOD0(Clear, TPM_RC()); 36 MOCK_METHOD0(InitializeTpm, TPM_RC()); 37 MOCK_METHOD1(AllocatePCR, TPM_RC(const std::string&)); 38 MOCK_METHOD3(TakeOwnership, TPM_RC(const std::string&, 41 MOCK_METHOD2(StirRandom, TPM_RC(const std::string&, AuthorizationDelegate*)); 42 MOCK_METHOD3(GenerateRandom, TPM_RC(size_t, 46 TPM_RC(int, const std::string&, AuthorizationDelegate*)); 47 MOCK_METHOD2(ReadPCR, TPM_RC(int, std::string*)); 48 MOCK_METHOD6(AsymmetricEncrypt, TPM_RC(TPM_HANDLE, [all …]
|
D | tpm_generated.h | 440 typedef UINT32 TPM_RC; typedef 617 const TPM_RC TPM_RC_SUCCESS = 0x000; 618 const TPM_RC TPM_RC_BAD_TAG = 0x01E; 619 const TPM_RC RC_VER1 = 0x100; 620 const TPM_RC TPM_RC_INITIALIZE = RC_VER1 + 0x000; 621 const TPM_RC TPM_RC_FAILURE = RC_VER1 + 0x001; 622 const TPM_RC TPM_RC_SEQUENCE = RC_VER1 + 0x003; 623 const TPM_RC TPM_RC_PRIVATE = RC_VER1 + 0x00B; 624 const TPM_RC TPM_RC_HMAC = RC_VER1 + 0x019; 625 const TPM_RC TPM_RC_DISABLED = RC_VER1 + 0x020; [all …]
|
D | tpm_utility_impl.h | 43 TPM_RC Startup() override; 44 TPM_RC Clear() override; 46 TPM_RC InitializeTpm() override; 47 TPM_RC AllocatePCR(const std::string& platform_password) override; 48 TPM_RC TakeOwnership(const std::string& owner_password, 51 TPM_RC StirRandom(const std::string& entropy_data, 53 TPM_RC GenerateRandom(size_t num_bytes, 56 TPM_RC ExtendPCR(int pcr_index, 59 TPM_RC ReadPCR(int pcr_index, std::string* pcr_value) override; 60 TPM_RC AsymmetricEncrypt(TPM_HANDLE key_handle, [all …]
|
D | tpm_utility.h | 54 virtual TPM_RC Startup() = 0; 60 virtual TPM_RC Clear() = 0; 68 virtual TPM_RC InitializeTpm() = 0; 74 virtual TPM_RC AllocatePCR(const std::string& platform_password) = 0; 78 virtual TPM_RC TakeOwnership(const std::string& owner_password, 84 virtual TPM_RC StirRandom(const std::string& entropy_data, 89 virtual TPM_RC GenerateRandom(size_t num_bytes, 97 virtual TPM_RC ExtendPCR(int pcr_index, 103 virtual TPM_RC ReadPCR(int pcr_index, std::string* pcr_value) = 0; 110 virtual TPM_RC AsymmetricEncrypt(TPM_HANDLE key_handle, [all …]
|
D | trunks_factory_for_test.cc | 47 TPM_RC Initialize() override { in Initialize() 125 TPM_RC Startup() override { in Startup() 129 TPM_RC Clear() override { in Clear() 137 TPM_RC InitializeTpm() override { in InitializeTpm() 141 TPM_RC AllocatePCR(const std::string& platform_password) override { in AllocatePCR() 145 TPM_RC TakeOwnership(const std::string& owner_password, in TakeOwnership() 153 TPM_RC StirRandom(const std::string& entropy_data, in StirRandom() 158 TPM_RC GenerateRandom(size_t num_bytes, in GenerateRandom() 164 TPM_RC ExtendPCR(int pcr_index, in ExtendPCR() 170 TPM_RC ReadPCR(int pcr_index, std::string* pcr_value) override { in ReadPCR() [all …]
|
D | mock_policy_session.h | 35 MOCK_METHOD3(StartBoundSession, TPM_RC( 39 MOCK_METHOD1(StartUnboundSession, TPM_RC(bool enable_encryption)); 40 MOCK_METHOD1(GetDigest, TPM_RC(std::string*)); 41 MOCK_METHOD1(PolicyOR, TPM_RC(const std::vector<std::string>&)); 42 MOCK_METHOD2(PolicyPCR, TPM_RC(uint32_t, const std::string&)); 43 MOCK_METHOD1(PolicyCommandCode, TPM_RC(TPM_CC)); 44 MOCK_METHOD0(PolicyAuthValue, TPM_RC());
|
D | mock_tpm.h | 39 TPM_RC(const TPM_SU& startup_type, 46 TPM_RC(const TPM_SU& shutdown_type, 53 TPM_RC(const TPMI_YES_NO& full_test, 60 TPM_RC(const TPML_ALG& to_test, 67 TPM_RC(TPM2B_MAX_BUFFER* out_data, 68 TPM_RC* test_result, 93 TPM_RC StartAuthSessionSync( 107 TPM_RC(const TPMI_DH_OBJECT& tpm_key, 123 TPM_RC(const TPMI_SH_POLICY& session_handle, 136 TPM_RC CreateSync(const TPMI_DH_OBJECT& parent_handle, [all …]
|
D | policy_session.h | 46 virtual TPM_RC StartBoundSession( 54 virtual TPM_RC StartUnboundSession(bool enable_encryption) = 0; 57 virtual TPM_RC GetDigest(std::string* digest) = 0; 62 virtual TPM_RC PolicyOR(const std::vector<std::string>& digests) = 0; 66 virtual TPM_RC PolicyPCR(uint32_t pcr_index, 72 virtual TPM_RC PolicyCommandCode(TPM_CC command_code) = 0; 76 virtual TPM_RC PolicyAuthValue() = 0;
|
D | policy_session_impl.h | 54 TPM_RC StartBoundSession(TPMI_DH_ENTITY bind_entity, 57 TPM_RC StartUnboundSession(bool enable_encryption) override; 58 TPM_RC GetDigest(std::string* digest) override; 59 TPM_RC PolicyOR(const std::vector<std::string>& digests) override; 60 TPM_RC PolicyPCR(uint32_t pcr_index, const std::string& pcr_value) override; 61 TPM_RC PolicyCommandCode(TPM_CC command_code) override; 62 TPM_RC PolicyAuthValue() override;
|
D | tpm_generated.cc | 269 TPM_RC Serialize_uint8_t(const uint8_t& value, std::string* buffer) { in Serialize_uint8_t() 290 TPM_RC Parse_uint8_t( in Parse_uint8_t() 319 TPM_RC Serialize_int8_t(const int8_t& value, std::string* buffer) { in Serialize_int8_t() 340 TPM_RC Parse_int8_t( in Parse_int8_t() 369 TPM_RC Serialize_int(const int& value, std::string* buffer) { in Serialize_int() 390 TPM_RC Parse_int( in Parse_int() 419 TPM_RC Serialize_uint16_t(const uint16_t& value, std::string* buffer) { in Serialize_uint16_t() 440 TPM_RC Parse_uint16_t( in Parse_uint16_t() 469 TPM_RC Serialize_int16_t(const int16_t& value, std::string* buffer) { in Serialize_int16_t() 490 TPM_RC Parse_int16_t( in Parse_int16_t() [all …]
|
D | policy_session_impl.cc | 57 TPM_RC PolicySessionImpl::StartBoundSession( in StartBoundSession() 71 TPM_RC PolicySessionImpl::StartUnboundSession(bool enable_encryption) { in StartUnboundSession() 77 TPM_RC PolicySessionImpl::GetDigest(std::string* digest) { in GetDigest() 80 TPM_RC result = factory_.GetTpm()->PolicyGetDigestSync( in GetDigest() 93 TPM_RC PolicySessionImpl::PolicyOR(const std::vector<std::string>& digests) { in PolicyOR() 103 TPM_RC result = factory_.GetTpm()->PolicyORSync( in PolicyOR() 116 TPM_RC PolicySessionImpl::PolicyPCR(uint32_t pcr_index, in PolicyPCR() 139 TPM_RC result = factory_.GetTpm()->PolicyPCRSync( in PolicyPCR() 152 TPM_RC PolicySessionImpl::PolicyCommandCode(TPM_CC command_code) { in PolicyCommandCode() 153 TPM_RC result = factory_.GetTpm()->PolicyCommandCodeSync( in PolicyCommandCode() [all …]
|
D | resource_manager.h | 110 TPM_RC EnsureSessionIsLoaded(const MessageInfo& command_info, 136 bool FixWarnings(const MessageInfo& command_info, TPM_RC result); 161 TPM_RC LoadContext(const MessageInfo& command_info, HandleInfo* handle_info); 165 TPM_RC MakeError(TPM_RC tpm_error, 170 TPM_RC ParseCommand(const std::string& command, MessageInfo* message_info); 175 TPM_RC ParseResponse(const MessageInfo& command_info, 194 TPM_RC ProcessInputHandle(const MessageInfo& command_info, 210 TPM_RC SaveContext(const MessageInfo& command_info, HandleInfo* handle_info); 229 std::set<TPM_RC> warnings_already_seen_;
|
D | tpm_utility_impl.cc | 82 TPM_RC TpmUtilityImpl::Startup() { in Startup() 83 TPM_RC result = TPM_RC_SUCCESS; in Startup() 99 TPM_RC TpmUtilityImpl::Clear() { in Clear() 100 TPM_RC result = TPM_RC_SUCCESS; in Clear() 127 TPM_RC return_code = factory_.GetTpm()->ShutdownSync(TPM_SU_CLEAR, nullptr); in Shutdown() 134 TPM_RC TpmUtilityImpl::InitializeTpm() { in InitializeTpm() 135 TPM_RC result = TPM_RC_SUCCESS; in InitializeTpm() 182 TPM_RC TpmUtilityImpl::AllocatePCR(const std::string& platform_password) { in AllocatePCR() 183 TPM_RC result; in AllocatePCR() 248 TPM_RC TpmUtilityImpl::TakeOwnership(const std::string& owner_password, in TakeOwnership() [all …]
|
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() 181 bool IsFormatOne(trunks::TPM_RC error) { in IsFormatOne() 189 std::string GetErrorString(TPM_RC error) { in GetErrorString() 223 TPM_RC GetFormatOneError(TPM_RC error) { in GetFormatOneError() 230 std::string CreateErrorResponse(TPM_RC error_code) { in CreateErrorResponse()
|
D | mock_tpm.cc | 53 TPM_RC MockTpm::StartAuthSessionSync( in StartAuthSessionSync() 71 TPM_RC MockTpm::CreateSync( in CreateSync() 89 TPM_RC MockTpm::CertifyCreationSync( in CertifyCreationSync() 106 TPM_RC MockTpm::GetSessionAuditDigestSync( in GetSessionAuditDigestSync() 123 TPM_RC MockTpm::CommitSync( in CommitSync() 155 TPM_RC MockTpm::PolicySignedSync( in PolicySignedSync() 172 TPM_RC MockTpm::PolicySecretSync( in PolicySecretSync() 202 TPM_RC MockTpm::CreatePrimarySync( in CreatePrimarySync() 236 TPM_RC MockTpm::NV_CertifySync( in NV_CertifySync()
|
D | resource_manager.cc | 65 TPM_RC result = factory_.GetTpm()->StartupSync(TPM_SU_CLEAR, nullptr); in Initialize() 115 TPM_RC result = ParseCommand(command, &command_info); in SendCommandAndWait() 274 TPM_RC ResourceManager::EnsureSessionIsLoaded(const MessageInfo& command_info, in EnsureSessionIsLoaded() 286 TPM_RC result = LoadContext(command_info, &handle_info); in EnsureSessionIsLoaded() 305 TPM_RC result = SaveContext(command_info, &info); in EvictObjects() 328 TPM_RC result = SaveContext(command_info, &info); in EvictSession() 367 TPM_RC result = LoadContext(command_info, &info); in FixContextGap() 394 TPM_RC result) { in FixWarnings() 438 TPM_RC result = factory_.GetTpm()->FlushContextSync(session_to_flush, in FlushSession() 465 TPM_RC ResourceManager::LoadContext(const MessageInfo& command_info, in LoadContext() [all …]
|
D | session_manager_impl.cc | 65 TPM_RC result = factory_.GetTpm()->FlushContextSync(session_handle_, nullptr); in CloseSession() 72 TPM_RC SessionManagerImpl::StartSession( in StartSession() 91 TPM_RC salt_result = EncryptSalt(salt, &encrypted_salt); in StartSession() 120 TPM_RC tpm_result = tpm->StartAuthSessionSync(kSaltingKey, in StartSession() 151 TPM_RC SessionManagerImpl::EncryptSalt(const std::string& salt, in EncryptSalt() 157 TPM_RC result = factory_.GetTpm()->ReadPublicSync( in EncryptSalt()
|
D | blob_parser.cc | 34 TPM_RC result = Serialize_TPM2B_PUBLIC(public_info, key_blob); in SerializeKeyBlob() 58 TPM_RC result = Parse_TPM2B_PUBLIC(&mutable_key_blob, public_info, nullptr); in ParseKeyBlob() 77 TPM_RC result = Serialize_TPM2B_CREATION_DATA(creation_data, creation_blob); in SerializeCreationBlob() 107 TPM_RC result = Parse_TPM2B_CREATION_DATA(&mutable_creation_blob, in ParseCreationBlob()
|
D | mock_hmac_session.h | 34 MOCK_METHOD3(StartBoundSession, TPM_RC( 38 MOCK_METHOD1(StartUnboundSession, TPM_RC(bool enable_encryption));
|
D | hmac_session.h | 45 virtual TPM_RC StartBoundSession( 53 virtual TPM_RC StartUnboundSession(bool enable_encryption) = 0;
|
D | session_manager_impl.h | 42 TPM_RC StartSession(TPM_SE session_type, 53 TPM_RC EncryptSalt(const std::string& salt, std::string* encrypted_salt);
|
D | hmac_session_impl.h | 57 TPM_RC StartBoundSession(TPMI_DH_ENTITY bind_entity, 60 TPM_RC StartUnboundSession(bool enable_encryption) override;
|
/system/tpm/tpm_manager/server/ |
D | tpm2_nvram_impl.cc | 31 using trunks::TPM_RC; 53 TPM_RC result = trunks_utility_->StartSession(trunks_session_.get()); in Initialize() 87 TPM_RC result = trunks_utility_->DefineNVSpace( in DefineNvram() 100 TPM_RC result = trunks_utility_->DestroyNVSpace( in DestroyNvram() 113 TPM_RC result = trunks_utility_->WriteNVSpace(index, in WriteNvram() 139 TPM_RC result = trunks_utility_->ReadNVSpace(index, in ReadNvram() 153 TPM_RC result = trunks_utility_->GetNVSpacePublicArea(index, &nvram_public); in IsNvramDefined() 168 TPM_RC result = trunks_utility_->GetNVSpacePublicArea(index, &nvram_public); in IsNvramLocked() 180 TPM_RC result = trunks_utility_->GetNVSpacePublicArea(index, &nvram_public); in GetNvramSize()
|
D | tpm2_initializer_impl.cc | 103 trunks::TPM_RC result = trunks_factory_->GetTpmUtility()->TakeOwnership( in InitializeTpm() 117 trunks::TPM_RC result = trunks_factory_->GetTpmUtility()->StirRandom( in SeedTpmRng() 127 trunks::TPM_RC result = trunks_factory_->GetTpmUtility()->GenerateRandom( in GetTpmRandomData()
|