/system/tpm/trunks/ |
D | trunks_client_test.cc | 73 if (utility->StartSession(session.get()) != TPM_RC_SUCCESS) { in RNGTest() 81 if (result != TPM_RC_SUCCESS) { in RNGTest() 87 if (result != TPM_RC_SUCCESS) { in RNGTest() 102 if (utility->StartSession(session.get()) != TPM_RC_SUCCESS) { in SignTest() 112 if (result != TPM_RC_SUCCESS) { in SignTest() 118 if (result != TPM_RC_SUCCESS) { in SignTest() 127 if (result != TPM_RC_SUCCESS) { in SignTest() 133 if (result != TPM_RC_SUCCESS) { in SignTest() 143 if (utility->StartSession(session.get()) != TPM_RC_SUCCESS) { in DecryptTest() 153 if (result != TPM_RC_SUCCESS) { in DecryptTest() [all …]
|
D | tpm_generated.cc | 287 return TPM_RC_SUCCESS; in Serialize_uint8_t() 316 return TPM_RC_SUCCESS; in Parse_uint8_t() 337 return TPM_RC_SUCCESS; in Serialize_int8_t() 366 return TPM_RC_SUCCESS; in Parse_int8_t() 387 return TPM_RC_SUCCESS; in Serialize_int() 416 return TPM_RC_SUCCESS; in Parse_int() 437 return TPM_RC_SUCCESS; in Serialize_uint16_t() 466 return TPM_RC_SUCCESS; in Parse_uint16_t() 487 return TPM_RC_SUCCESS; in Serialize_int16_t() 516 return TPM_RC_SUCCESS; in Parse_int16_t() [all …]
|
D | tpm_state_test.cc | 94 return TPM_RC_SUCCESS; in GetLivePermanent() 98 return TPM_RC_SUCCESS; in GetLiveStartupClear() 102 return TPM_RC_SUCCESS; in GetLiveRSA() 106 return TPM_RC_SUCCESS; in GetLiveECC() 110 return TPM_RC_SUCCESS; in GetLiveLockoutCounter() 114 return TPM_RC_SUCCESS; in GetLiveLockoutThreshold() 118 return TPM_RC_SUCCESS; in GetLiveLockoutInterval() 122 return TPM_RC_SUCCESS; in GetLiveLockoutRecovery() 185 EXPECT_EQ(TPM_RC_SUCCESS, tpm_state.Initialize()); in TEST_F() 221 EXPECT_EQ(TPM_RC_SUCCESS, tpm_state.Initialize()); in TEST_F() [all …]
|
D | tpm_utility_impl.cc | 83 TPM_RC result = TPM_RC_SUCCESS; in Startup() 96 return TPM_RC_SUCCESS; in Startup() 100 TPM_RC result = TPM_RC_SUCCESS; in Clear() 135 TPM_RC result = TPM_RC_SUCCESS; in InitializeTpm() 160 result = TPM_RC_SUCCESS; in InitializeTpm() 162 if (result != TPM_RC_SUCCESS) { in InitializeTpm() 167 if (result != TPM_RC_SUCCESS) { in InitializeTpm() 174 if (result != TPM_RC_SUCCESS) { in InitializeTpm() 179 return TPM_RC_SUCCESS; in InitializeTpm() 189 if (result != TPM_RC_SUCCESS) { in AllocatePCR() [all …]
|
D | blob_parser.cc | 35 if (result != TPM_RC_SUCCESS) { in SerializeKeyBlob() 40 if (result != TPM_RC_SUCCESS) { in SerializeKeyBlob() 59 if (result != TPM_RC_SUCCESS) { in ParseKeyBlob() 64 if (result != TPM_RC_SUCCESS) { in ParseKeyBlob() 78 if (result != TPM_RC_SUCCESS) { in SerializeCreationBlob() 83 if (result != TPM_RC_SUCCESS) { in SerializeCreationBlob() 88 if (result != TPM_RC_SUCCESS) { in SerializeCreationBlob() 109 if (result != TPM_RC_SUCCESS) { in ParseCreationBlob() 114 if (result != TPM_RC_SUCCESS) { in ParseCreationBlob() 120 if (result != TPM_RC_SUCCESS) { in ParseCreationBlob()
|
D | tpm_utility_test.cc | 74 return TPM_RC_SUCCESS; in GetNVRAMMap() 97 DoAll(SetArgPointee<4>(capability_data), Return(TPM_RC_SUCCESS))); in SetExistingKeyHandleExpectation() 136 DoAll(SetArgPointee<4>(capability_data), Return(TPM_RC_SUCCESS))); in SetExistingPCRSExpectation() 151 EXPECT_EQ(TPM_RC_SUCCESS, utility_.Startup()); in TEST_F() 157 EXPECT_EQ(TPM_RC_SUCCESS, utility_.Startup()); in TEST_F() 173 EXPECT_EQ(TPM_RC_SUCCESS, utility_.Clear()); in TEST_F() 179 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 180 EXPECT_EQ(TPM_RC_SUCCESS, utility_.Clear()); in TEST_F() 196 EXPECT_EQ(TPM_RC_SUCCESS, utility_.InitializeTpm()); in TEST_F() 197 EXPECT_EQ(TPM_RC_SUCCESS, utility_.InitializeTpm()); in TEST_F() [all …]
|
D | resource_manager.cc | 67 CHECK(result == TPM_RC_SUCCESS || result == TPM_RC_INITIALIZE) in Initialize() 70 CHECK_EQ(result, TPM_RC_SUCCESS) << "TPM self-test failure: " in Initialize() 87 if (result != TPM_RC_SUCCESS) { in Initialize() 116 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait() 129 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait() 138 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait() 167 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait() 175 if (response_info.code == TPM_RC_SUCCESS) { in SendCommandAndWait() 278 return TPM_RC_SUCCESS; in EnsureSessionIsLoaded() 287 if (result != TPM_RC_SUCCESS) { in EnsureSessionIsLoaded() [all …]
|
D | policy_session_impl.cc | 85 if (result != TPM_RC_SUCCESS) { in GetDigest() 90 return TPM_RC_SUCCESS; in GetDigest() 108 if (result != TPM_RC_SUCCESS) { in PolicyOR() 113 return TPM_RC_SUCCESS; in PolicyOR() 145 if (result != TPM_RC_SUCCESS) { in PolicyPCR() 149 return TPM_RC_SUCCESS; in PolicyPCR() 158 if (result != TPM_RC_SUCCESS) { in PolicyCommandCode() 163 return TPM_RC_SUCCESS; in PolicyCommandCode() 171 if (result != TPM_RC_SUCCESS) { in PolicyAuthValue() 177 return TPM_RC_SUCCESS; in PolicyAuthValue()
|
D | resource_manager_test.cc | 159 std::string response = CreateResponse(TPM_RC_SUCCESS, in LoadHandle() 168 CHECK_EQ(TPM_RC_SUCCESS, Parse_TPM_HANDLE(&handle_blob, &virtual_handle, in LoadHandle() 180 std::string success_response = CreateResponse(TPM_RC_SUCCESS, in EvictObjects() 188 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in EvictObjects() 190 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in EvictObjects() 202 std::string response = CreateResponse(TPM_RC_SUCCESS, in StartSession() 219 std::string success_response = CreateResponse(TPM_RC_SUCCESS, in EvictSession() 227 .WillOnce(Return(TPM_RC_SUCCESS)); in EvictSession() 258 std::string response = CreateResponse(TPM_RC_SUCCESS, in TEST_F() 273 std::string response = CreateResponse(TPM_RC_SUCCESS, in TEST_F() [all …]
|
D | policy_session_test.cc | 71 EXPECT_EQ(TPM_RC_SUCCESS, in TEST_F() 92 EXPECT_EQ(TPM_RC_SUCCESS, session.StartUnboundSession(true)); in TEST_F() 110 Return(TPM_RC_SUCCESS))); in TEST_F() 111 EXPECT_EQ(TPM_RC_SUCCESS, session.GetDigest(&digest)); in TEST_F() 132 Return(TPM_RC_SUCCESS))); in TEST_F() 133 EXPECT_EQ(TPM_RC_SUCCESS, session.PolicyOR(digests)); in TEST_F() 166 Return(TPM_RC_SUCCESS))); in TEST_F() 167 EXPECT_EQ(TPM_RC_SUCCESS, session.PolicyPCR(pcr_index, pcr_digest)); in TEST_F() 195 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 196 EXPECT_EQ(TPM_RC_SUCCESS, session.PolicyCommandCode(TPM_CC_FIRST)); in TEST_F() [all …]
|
D | tpm_state_impl.cc | 59 if (result != TPM_RC_SUCCESS) { in Initialize() 64 if (result != TPM_RC_SUCCESS) { in Initialize() 69 if (result != TPM_RC_SUCCESS) { in Initialize() 74 if (result != TPM_RC_SUCCESS) { in Initialize() 79 if (result != TPM_RC_SUCCESS) { in Initialize() 84 if (result != TPM_RC_SUCCESS) { in Initialize() 130 return TPM_RC_SUCCESS; in Initialize() 231 if (result != TPM_RC_SUCCESS) { in GetTpmProperty() 243 return TPM_RC_SUCCESS; in GetTpmProperty()
|
D | session_manager_test.cc | 85 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 111 Return(TPM_RC_SUCCESS))); in TEST_F() 119 Return(TPM_RC_SUCCESS))); in TEST_F() 120 EXPECT_EQ(TPM_RC_SUCCESS, session_manager_.StartSession(session_type, in TEST_F() 130 Return(TPM_RC_SUCCESS))); in TEST_F() 141 Return(TPM_RC_SUCCESS))); in TEST_F() 157 Return(TPM_RC_SUCCESS))); in TEST_F() 165 Return(TPM_RC_SUCCESS))); in TEST_F()
|
D | hmac_authorization_delegate_test.cc | 133 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND(&authorization, in TEST_F() 157 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND(&authorization, in TEST_F() 177 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND(&authorization, in TEST_F() 201 EXPECT_EQ(TPM_RC_SUCCESS, Serialize_TPMS_AUTH_RESPONSE(auth_response, in TEST_F() 217 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND(&authorization, in TEST_F() 225 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND(&authorization, in TEST_F() 239 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND(&authorization, in TEST_F() 247 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND(&authorization, in TEST_F() 256 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND(&authorization, in TEST_F() 265 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND(&authorization, in TEST_F()
|
D | scoped_key_handle_test.cc | 55 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 77 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 81 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 89 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
|
D | session_manager_impl.cc | 66 if (result != TPM_RC_SUCCESS) { in CloseSession() 92 if (salt_result != TPM_RC_SUCCESS) { in StartSession() 148 return TPM_RC_SUCCESS; in StartSession() 160 if (result != TPM_RC_SUCCESS) { in EncryptSalt() 215 return TPM_RC_SUCCESS; in EncryptSalt()
|
D | hmac_authorization_delegate.cc | 83 TPM_RC_SUCCESS) << "Error serializing session attributes."; in GetCommandAuthorization() 102 if (serialize_error != TPM_RC_SUCCESS) { in GetCommandAuthorization() 121 if (parse_error != TPM_RC_SUCCESS) { in CheckResponseAuthorization() 138 TPM_RC_SUCCESS) << "Error serializing session attributes."; in CheckResponseAuthorization() 253 if (Serialize_uint32_t(1, &counter) != TPM_RC_SUCCESS || in CreateKey() 254 Serialize_uint32_t(kDigestBits, &digest_size_bits) != TPM_RC_SUCCESS) { in CreateKey()
|
D | password_authorization_delegate.cc | 46 if (serialize_error != TPM_RC_SUCCESS) { in GetCommandAuthorization() 66 if (parse_error != TPM_RC_SUCCESS) { in CheckResponseAuthorization()
|
D | error_codes.cc | 35 case trunks::TPM_RC_SUCCESS: return "TPM_RC_SUCCESS"; in GetErrorStringInternal() 233 CHECK_EQ(Serialize_TPM_ST(TPM_ST_NO_SESSIONS, &response), TPM_RC_SUCCESS); in CreateErrorResponse() 234 CHECK_EQ(Serialize_UINT32(kErrorResponseSize, &response), TPM_RC_SUCCESS); in CreateErrorResponse() 235 CHECK_EQ(Serialize_TPM_RC(error_code, &response), TPM_RC_SUCCESS); in CreateErrorResponse()
|
D | tpm_handle.cc | 68 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait() 94 return TPM_RC_SUCCESS; in SendCommandInternal()
|
D | tpm_generated_test.cc | 56 ASSERT_EQ(TPM_RC_SUCCESS, rc); in TEST() 63 ASSERT_EQ(TPM_RC_SUCCESS, rc); in TEST() 111 EXPECT_EQ(TPM_RC_SUCCESS, tpm.StartupSync(TPM_SU_CLEAR, &authorization)); in TEST() 245 ASSERT_EQ(rc, TPM_RC_SUCCESS); in TEST() 263 CommandFlowTest() : response_code_(TPM_RC_SUCCESS) {} in CommandFlowTest() 348 EXPECT_EQ(TPM_RC_SUCCESS, response_code_); in TEST_F() 435 ASSERT_EQ(TPM_RC_SUCCESS, response_code_); in TEST_F()
|
/system/tpm/tpm_manager/server/ |
D | tpm2_nvram_impl.cc | 32 using trunks::TPM_RC_SUCCESS; 54 if (result != TPM_RC_SUCCESS) { in Initialize() 89 if (result != TPM_RC_SUCCESS) { in DefineNvram() 102 if (result != TPM_RC_SUCCESS) { in DestroyNvram() 117 if (result != TPM_RC_SUCCESS) { in WriteNvram() 122 if (result != TPM_RC_SUCCESS) { in WriteNvram() 144 if (result != TPM_RC_SUCCESS) { in ReadNvram() 156 } else if (result == TPM_RC_SUCCESS) { in IsNvramDefined() 169 if (result != TPM_RC_SUCCESS) { in IsNvramLocked() 181 if (result != TPM_RC_SUCCESS) { in GetNvramSize()
|
D | tpm2_nvram_test.cc | 40 using trunks::TPM_RC_SUCCESS; 90 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 109 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 128 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 131 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 139 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 161 Return(TPM_RC_SUCCESS))); in TEST_F() 166 Return(TPM_RC_SUCCESS))); in TEST_F() 185 Return(TPM_RC_SUCCESS))); in TEST_F() 195 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() [all …]
|
D | tpm2_status_test.cc | 29 using trunks::TPM_RC_SUCCESS; 52 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in TEST_F() 66 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 73 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in TEST_F() 88 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in TEST_F() 99 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F() 148 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in TEST_F()
|
D | tpm2_initializer_impl.cc | 105 if (result != trunks::TPM_RC_SUCCESS) { in InitializeTpm() 119 if (result != trunks::TPM_RC_SUCCESS) { in SeedTpmRng() 129 if (result != trunks::TPM_RC_SUCCESS) { in GetTpmRandomData()
|
D | tpm2_status_impl.cc | 25 using trunks::TPM_RC_SUCCESS; 78 if (result != TPM_RC_SUCCESS) { in Refresh()
|