Home
last modified time | relevance | path

Searched refs:TPM_RC_SUCCESS (Results 1 – 25 of 35) sorted by relevance

12

/system/tpm/trunks/
Dtrunks_client_test.cc73 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 …]
Dtpm_generated.cc505 return TPM_RC_SUCCESS; in Serialize_uint8_t()
533 return TPM_RC_SUCCESS; in Parse_uint8_t()
554 return TPM_RC_SUCCESS; in Serialize_int8_t()
582 return TPM_RC_SUCCESS; in Parse_int8_t()
603 return TPM_RC_SUCCESS; in Serialize_int()
629 return TPM_RC_SUCCESS; in Parse_int()
650 return TPM_RC_SUCCESS; in Serialize_uint16_t()
678 return TPM_RC_SUCCESS; in Parse_uint16_t()
699 return TPM_RC_SUCCESS; in Serialize_int16_t()
727 return TPM_RC_SUCCESS; in Parse_int16_t()
[all …]
Dblob_parser.cc35 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()
Dpolicy_session_impl.cc82 if (result != TPM_RC_SUCCESS) { in GetDigest()
87 return TPM_RC_SUCCESS; in GetDigest()
104 if (result != TPM_RC_SUCCESS) { in PolicyOR()
109 return TPM_RC_SUCCESS; in PolicyOR()
139 if (result != TPM_RC_SUCCESS) { in PolicyPCR()
143 return TPM_RC_SUCCESS; in PolicyPCR()
151 if (result != TPM_RC_SUCCESS) { in PolicyCommandCode()
156 return TPM_RC_SUCCESS; in PolicyCommandCode()
164 if (result != TPM_RC_SUCCESS) { in PolicyAuthValue()
170 return TPM_RC_SUCCESS; in PolicyAuthValue()
[all …]
Dtpm_utility_test.cc72 return TPM_RC_SUCCESS; in GetNVRAMMap()
95 DoAll(SetArgPointee<4>(capability_data), Return(TPM_RC_SUCCESS))); in SetExistingKeyHandleExpectation()
133 DoAll(SetArgPointee<4>(capability_data), Return(TPM_RC_SUCCESS))); in SetExistingPCRSExpectation()
148 EXPECT_EQ(TPM_RC_SUCCESS, utility_.Startup()); in TEST_F()
154 EXPECT_EQ(TPM_RC_SUCCESS, utility_.Startup()); in TEST_F()
170 EXPECT_EQ(TPM_RC_SUCCESS, utility_.Clear()); in TEST_F()
176 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
177 EXPECT_EQ(TPM_RC_SUCCESS, utility_.Clear()); in TEST_F()
192 EXPECT_EQ(TPM_RC_SUCCESS, utility_.InitializeTpm()); in TEST_F()
193 EXPECT_EQ(TPM_RC_SUCCESS, utility_.InitializeTpm()); in TEST_F()
[all …]
Dtpm_utility_impl.cc83 TPM_RC result = TPM_RC_SUCCESS; in Startup()
96 return TPM_RC_SUCCESS; in Startup()
100 TPM_RC result = TPM_RC_SUCCESS; in Clear()
137 TPM_RC result = TPM_RC_SUCCESS; in InitializeTpm()
162 result = TPM_RC_SUCCESS; in InitializeTpm()
164 if (result != TPM_RC_SUCCESS) { in InitializeTpm()
169 if (result != TPM_RC_SUCCESS) { in InitializeTpm()
176 if (result != TPM_RC_SUCCESS) { in InitializeTpm()
181 return TPM_RC_SUCCESS; in InitializeTpm()
191 if (result != TPM_RC_SUCCESS) { in AllocatePCR()
[all …]
Dtpm_state_test.cc111 return TPM_RC_SUCCESS; in FakeGetCapability()
154 ASSERT_EQ(TPM_RC_SUCCESS, tpm_state.Initialize()); in TEST_F()
171 ASSERT_EQ(TPM_RC_SUCCESS, tpm_state.Initialize()); in TEST_F()
185 ASSERT_EQ(TPM_RC_SUCCESS, tpm_state.Initialize()); in TEST_F()
189 ASSERT_EQ(TPM_RC_SUCCESS, tpm_state.Initialize()); in TEST_F()
193 ASSERT_EQ(TPM_RC_SUCCESS, tpm_state.Initialize()); in TEST_F()
197 ASSERT_EQ(TPM_RC_SUCCESS, tpm_state.Initialize()); in TEST_F()
201 ASSERT_EQ(TPM_RC_SUCCESS, tpm_state.Initialize()); in TEST_F()
207 ASSERT_EQ(TPM_RC_SUCCESS, tpm_state.Initialize()); in TEST_F()
211 ASSERT_EQ(TPM_RC_SUCCESS, tpm_state.Initialize()); in TEST_F()
[all …]
Dresource_manager.cc67 CHECK_EQ(tpm_utility->Startup(), TPM_RC_SUCCESS); in Initialize()
68 CHECK_EQ(tpm_utility->InitializeTpm(), TPM_RC_SUCCESS); in Initialize()
80 if (result != TPM_RC_SUCCESS) { in Initialize()
108 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait()
121 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait()
130 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait()
159 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait()
167 if (response_info.code == TPM_RC_SUCCESS) { in SendCommandAndWait()
268 return TPM_RC_SUCCESS; in EnsureSessionIsLoaded()
277 if (result != TPM_RC_SUCCESS) { in EnsureSessionIsLoaded()
[all …]
Dresource_manager_test.cc153 std::string response = CreateResponse(TPM_RC_SUCCESS, output_handles, in LoadHandle()
160 CHECK_EQ(TPM_RC_SUCCESS, in LoadHandle()
171 TPM_RC_SUCCESS, kNoHandles, kNoAuthorization, kNoParameters); in EvictObjects()
176 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in EvictObjects()
178 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in EvictObjects()
188 std::string response = CreateResponse(TPM_RC_SUCCESS, output_handles, in StartSession()
202 TPM_RC_SUCCESS, kNoHandles, kNoAuthorization, kNoParameters); in EvictSession()
207 .WillOnce(Return(TPM_RC_SUCCESS)); in EvictSession()
236 std::string response = CreateResponse(TPM_RC_SUCCESS, kNoHandles, in TEST_F()
247 std::string response = CreateResponse(TPM_RC_SUCCESS, kNoHandles, in TEST_F()
[all …]
Dsession_manager_test.cc83 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
107 .WillOnce(DoAll(SetArgPointee<2>(public_data), Return(TPM_RC_SUCCESS))); in TEST_F()
113 .WillOnce(DoAll(SetArgPointee<8>(nonce), Return(TPM_RC_SUCCESS))); in TEST_F()
114 EXPECT_EQ(TPM_RC_SUCCESS, session_manager_.StartSession( in TEST_F()
123 .WillOnce(DoAll(SetArgPointee<2>(public_data), Return(TPM_RC_SUCCESS))); in TEST_F()
130 .WillOnce(DoAll(SetArgPointee<2>(public_data), Return(TPM_RC_SUCCESS))); in TEST_F()
141 .WillOnce(DoAll(SetArgPointee<2>(public_data), Return(TPM_RC_SUCCESS))); in TEST_F()
156 .WillOnce(DoAll(SetArgPointee<2>(public_data), Return(TPM_RC_SUCCESS))); in TEST_F()
162 .WillOnce(DoAll(SetArgPointee<8>(nonce), Return(TPM_RC_SUCCESS))); in TEST_F()
Dpolicy_session_test.cc71 EXPECT_EQ(TPM_RC_SUCCESS, in TEST_F()
92 EXPECT_EQ(TPM_RC_SUCCESS, session.StartUnboundSession(true)); in TEST_F()
109 .WillOnce(DoAll(SetArgPointee<2>(policy_digest), Return(TPM_RC_SUCCESS))); in TEST_F()
110 EXPECT_EQ(TPM_RC_SUCCESS, session.GetDigest(&digest)); in TEST_F()
130 .WillOnce(DoAll(SaveArg<2>(&tpm_digests), Return(TPM_RC_SUCCESS))); in TEST_F()
131 EXPECT_EQ(TPM_RC_SUCCESS, session.PolicyOR(digests)); in TEST_F()
163 Return(TPM_RC_SUCCESS))); in TEST_F()
164 EXPECT_EQ(TPM_RC_SUCCESS, session.PolicyPCR(pcr_index, pcr_digest)); in TEST_F()
192 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
193 EXPECT_EQ(TPM_RC_SUCCESS, session.PolicyCommandCode(TPM_CC_FIRST)); in TEST_F()
[all …]
Dhmac_authorization_delegate_test.cc133 EXPECT_EQ(TPM_RC_SUCCESS, in TEST_F()
153 EXPECT_EQ(TPM_RC_SUCCESS, in TEST_F()
170 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND( in TEST_F()
192 EXPECT_EQ(TPM_RC_SUCCESS, in TEST_F()
208 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND( in TEST_F()
215 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND( in TEST_F()
228 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND( in TEST_F()
235 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND( in TEST_F()
243 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND( in TEST_F()
251 EXPECT_EQ(TPM_RC_SUCCESS, Parse_TPMS_AUTH_COMMAND( in TEST_F()
Dscoped_key_handle_test.cc53 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
75 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
79 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
87 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
Dtpm_state_impl.cc48 if (result != TPM_RC_SUCCESS) { in Initialize()
59 if (result != TPM_RC_SUCCESS) { in Initialize()
64 return TPM_RC_SUCCESS; in Initialize()
202 if (result != TPM_RC_SUCCESS) { in GetCapability()
223 return TPM_RC_SUCCESS; in GetCapability()
245 if (result != TPM_RC_SUCCESS) { in CacheTpmProperties()
271 return TPM_RC_SUCCESS; in CacheAlgorithmProperties()
Dsession_manager_impl.cc67 if (result != TPM_RC_SUCCESS) { in CloseSession()
93 if (salt_result != TPM_RC_SUCCESS) { in StartSession()
141 return TPM_RC_SUCCESS; in StartSession()
153 if (result != TPM_RC_SUCCESS) { in EncryptSalt()
213 return TPM_RC_SUCCESS; in EncryptSalt()
Dhmac_authorization_delegate.cc82 TPM_RC_SUCCESS) in GetCommandAuthorization()
102 if (serialize_error != TPM_RC_SUCCESS) { in GetCommandAuthorization()
120 if (parse_error != TPM_RC_SUCCESS) { in CheckResponseAuthorization()
137 TPM_RC_SUCCESS) in CheckResponseAuthorization()
250 if (Serialize_uint32_t(1, &counter) != TPM_RC_SUCCESS || in CreateKey()
251 Serialize_uint32_t(kDigestBits, &digest_size_bits) != TPM_RC_SUCCESS) { in CreateKey()
Dpassword_authorization_delegate.cc46 if (serialize_error != TPM_RC_SUCCESS) { in GetCommandAuthorization()
66 if (parse_error != TPM_RC_SUCCESS) { in CheckResponseAuthorization()
Dtpm_handle.cc68 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait()
94 return TPM_RC_SUCCESS; in SendCommandInternal()
Derror_codes.cc35 case trunks::TPM_RC_SUCCESS: in GetErrorStringInternal()
356 CHECK_EQ(Serialize_TPM_ST(TPM_ST_NO_SESSIONS, &response), TPM_RC_SUCCESS); in CreateErrorResponse()
357 CHECK_EQ(Serialize_UINT32(kErrorResponseSize, &response), TPM_RC_SUCCESS); in CreateErrorResponse()
358 CHECK_EQ(Serialize_TPM_RC(error_code, &response), TPM_RC_SUCCESS); in CreateErrorResponse()
/system/tpm/tpm_manager/server/
Dtpm2_status_test.cc29 using trunks::TPM_RC_SUCCESS;
51 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in TEST_F()
62 EXPECT_CALL(mock_tpm_state_, Initialize()).WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
69 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in TEST_F()
82 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in TEST_F()
90 EXPECT_CALL(mock_tpm_state_, Initialize()).WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
133 .WillRepeatedly(Return(TPM_RC_SUCCESS)); in TEST_F()
Dtpm2_nvram_impl.cc32 using trunks::TPM_RC_SUCCESS;
103 case trunks::TPM_RC_SUCCESS: in MapTpmError()
169 if (result != TPM_RC_SUCCESS) { in DefineSpace()
189 if (result != TPM_RC_SUCCESS) { in DestroySpace()
205 if (result != TPM_RC_SUCCESS) { in WriteSpace()
250 if (result != TPM_RC_SUCCESS) { in WriteSpace()
265 if (result != TPM_RC_SUCCESS) { in ReadSpace()
312 if (result != TPM_RC_SUCCESS) { in ReadSpace()
328 if (result != TPM_RC_SUCCESS) { in LockSpace()
379 if (result != TPM_RC_SUCCESS) { in LockSpace()
[all …]
Dtpm2_initializer_impl.cc31 using trunks::TPM_RC_SUCCESS;
110 if (result != TPM_RC_SUCCESS) { in InitializeTpm()
156 if (result != TPM_RC_SUCCESS) { in ResetDictionaryAttackLock()
166 if (result != TPM_RC_SUCCESS) { in ResetDictionaryAttackLock()
181 if (result != TPM_RC_SUCCESS) { in SeedTpmRng()
191 if (result != TPM_RC_SUCCESS) { in GetTpmRandomData()
Dtpm2_initializer_test.cc112 DoAll(SetArgPointee<2>(password), Return(trunks::TPM_RC_SUCCESS))); in TEST_F()
114 .WillOnce(Return(trunks::TPM_RC_SUCCESS)); in TEST_F()
134 .WillOnce(Return(trunks::TPM_RC_SUCCESS)); in TEST_F()
146 Return(trunks::TPM_RC_SUCCESS))); in TEST_F()
150 .WillRepeatedly(Return(trunks::TPM_RC_SUCCESS)); in TEST_F()
163 Return(trunks::TPM_RC_SUCCESS))); in TEST_F()
172 .WillRepeatedly(Return(trunks::TPM_RC_SUCCESS)); in TEST_F()
Dtpm2_nvram_test.cc53 using trunks::TPM_RC_SUCCESS;
73 DoAll(SetArgPointee<0>(kFakePolicyDigest), Return(TPM_RC_SUCCESS))); in SetUp()
76 DoAll(SetArgPointee<0>(kFakePolicyDigest), Return(TPM_RC_SUCCESS))); in SetUp()
112 DoAll(SetArgPointee<1>(public_data), Return(TPM_RC_SUCCESS))); in SetupExistingSpace()
142 DoAll(SetArgPointee<1>(kFakePCRValue), Return(TPM_RC_SUCCESS))); in SetupExistingSpace()
192 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
218 .WillOnce(Return(TPM_RC_SUCCESS)) in TEST_F()
238 DoAll(SetArgPointee<1>(kFakePCRValue), Return(TPM_RC_SUCCESS))); in TEST_F()
249 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
294 .WillOnce(Return(TPM_RC_SUCCESS)); in TEST_F()
[all …]
Dtpm2_status_impl.cc25 using trunks::TPM_RC_SUCCESS;
73 if (result != TPM_RC_SUCCESS) { in Refresh()

12