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.cc287 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 …]
Dtpm_state_test.cc94 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 …]
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()
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 …]
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()
Dtpm_utility_test.cc74 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 …]
Dresource_manager.cc67 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 …]
Dpolicy_session_impl.cc85 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()
Dresource_manager_test.cc159 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 …]
Dpolicy_session_test.cc71 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 …]
Dtpm_state_impl.cc59 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()
Dsession_manager_test.cc85 .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()
Dhmac_authorization_delegate_test.cc133 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()
Dscoped_key_handle_test.cc55 .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()
Dsession_manager_impl.cc66 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()
Dhmac_authorization_delegate.cc83 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()
Dpassword_authorization_delegate.cc46 if (serialize_error != TPM_RC_SUCCESS) { in GetCommandAuthorization()
66 if (parse_error != TPM_RC_SUCCESS) { in CheckResponseAuthorization()
Derror_codes.cc35 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()
Dtpm_handle.cc68 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait()
94 return TPM_RC_SUCCESS; in SendCommandInternal()
Dtpm_generated_test.cc56 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/
Dtpm2_nvram_impl.cc32 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()
Dtpm2_nvram_test.cc40 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 …]
Dtpm2_status_test.cc29 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()
Dtpm2_initializer_impl.cc105 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()
Dtpm2_status_impl.cc25 using trunks::TPM_RC_SUCCESS;
78 if (result != TPM_RC_SUCCESS) { in Refresh()

12