Home
last modified time | relevance | path

Searched refs:owner_password (Results 1 – 21 of 21) sorted by relevance

/system/tpm/tpm_manager/server/
Dtpm2_initializer_impl.cc68 std::string owner_password; in InitializeTpm() local
73 owner_password.assign(local_data.owner_password()); in InitializeTpm()
77 if (!GetTpmRandomData(kDefaultPasswordSize, &owner_password)) { in InitializeTpm()
96 local_data.set_owner_password(owner_password); in InitializeTpm()
104 owner_password, endorsement_password, lockout_password); in InitializeTpm()
Dtpm_initializer_impl.cc62 std::string owner_password; in InitializeTpm() local
63 if (!openssl_util_.GetRandomBytes(kDefaultPasswordSize, &owner_password)) { in InitializeTpm()
71 local_data.set_owner_password(owner_password); in InitializeTpm()
76 if (!ChangeOwnerPassword(tpm_handle, owner_password)) { in InitializeTpm()
218 TSS_HTPM tpm_handle, const std::string& owner_password) { in ChangeOwnerPassword() argument
228 std::string mutable_owner_password(owner_password); in ChangeOwnerPassword()
231 owner_password.size(), in ChangeOwnerPassword()
245 bool TpmInitializerImpl::TestTpmAuth(const std::string& owner_password) { in TestTpmAuth() argument
246 TSS_HTPM tpm_handle = tpm_connection_.GetTpmWithAuth(owner_password); in TestTpmAuth()
Dtpm_nvram_impl.cc277 std::string owner_password; in SetOwnerPolicy() local
278 if (!GetOwnerPassword(&owner_password)) { in SetOwnerPolicy()
284 owner_password.size(), in SetOwnerPolicy()
285 reinterpret_cast<BYTE *>(const_cast<char*>(owner_password.data()))); in SetOwnerPolicy()
309 std::string owner_password; in SetCompositePcr0() local
310 if (!GetOwnerPassword(&owner_password)) { in SetCompositePcr0()
314 result = Tspi_TPM_PcrRead(tpm_connection_.GetTpmWithAuth(owner_password), in SetCompositePcr0()
339 bool TpmNvramImpl::GetOwnerPassword(std::string* owner_password) { in GetOwnerPassword() argument
345 if (local_data.owner_password().empty()) { in GetOwnerPassword()
349 owner_password->assign(local_data.owner_password()); in GetOwnerPassword()
Dtpm2_initializer_test.cc107 std::string owner_password; in TEST_F() local
125 std::string owner_password("owner"); in TEST_F() local
130 local_data.set_owner_password(owner_password); in TEST_F()
141 EXPECT_EQ(owner_password, local_data.owner_password()); in TEST_F()
144 EXPECT_CALL(mock_tpm_utility_, TakeOwnership(owner_password, in TEST_F()
Dtpm_connection.cc58 TSS_HTPM TpmConnection::GetTpmWithAuth(const std::string& owner_password) { in GetTpmWithAuth() argument
74 owner_password.size(), in GetTpmWithAuth()
75 reinterpret_cast<BYTE *>(const_cast<char*>(owner_password.data()))))) { in GetTpmWithAuth()
Dtpm_initializer_impl.h75 const std::string& owner_password);
80 bool TestTpmAuth(const std::string& owner_password);
Dtpm_connection.h42 TSS_HTPM GetTpmWithAuth(const std::string& owner_password);
Dtpm2_nvram_impl.cc64 if (!local_data.owner_password().empty()) { in Initialize()
65 owner_password_.assign(local_data.owner_password()); in Initialize()
Dtpm_nvram_impl.h67 bool GetOwnerPassword(std::string* owner_password);
Dtpm2_nvram_test.cc57 void InitializeNvram(const std::string& owner_password) { in InitializeNvram() argument
59 local_data.set_owner_password(owner_password); in InitializeNvram()
Dtpm_manager_service_test.cc165 EXPECT_EQ(kOwnerPassword, reply.local_data().owner_password()); in TEST_F()
293 EXPECT_EQ(kOwnerPassword, local_data.owner_password()); in TEST_F()
339 EXPECT_EQ(kOwnerPassword, local_data.owner_password()); in TEST_F()
/system/tpm/trunks/
Dtrunks_client.cc82 int TakeOwnership(const std::string& owner_password, TrunksFactory* factory) { in TakeOwnership() argument
84 rc = factory->GetTpmUtility()->TakeOwnership(owner_password, in TakeOwnership()
85 owner_password, in TakeOwnership()
86 owner_password); in TakeOwnership()
220 std::string owner_password = cl->GetSwitchValueASCII("owner_password"); in main() local
222 if (!test.NvramTest(owner_password)) { in main()
Dtpm_utility_impl.h48 TPM_RC TakeOwnership(const std::string& owner_password,
156 TPM_RC CreateStorageRootKeys(const std::string& owner_password);
161 TPM_RC CreateSaltingKey(const std::string& owner_password);
Dtrunks_client_test.h97 bool NvramTest(const std::string& owner_password);
Dtrunks_client_test.cc821 bool TrunksClientTest::NvramTest(const std::string& owner_password) { in NvramTest() argument
830 session->SetEntityAuthorizationValue(owner_password); in NvramTest()
838 session->SetEntityAuthorizationValue(owner_password); in NvramTest()
856 session->SetEntityAuthorizationValue(owner_password); in NvramTest()
873 session->SetEntityAuthorizationValue(owner_password); in NvramTest()
879 session->SetEntityAuthorizationValue(owner_password); in NvramTest()
Dtpm_utility.h78 virtual TPM_RC TakeOwnership(const std::string& owner_password,
Dtpm_utility_impl.cc248 TPM_RC TpmUtilityImpl::TakeOwnership(const std::string& owner_password, in TakeOwnership() argument
304 session->SetFutureAuthorizationValue(owner_password); in TakeOwnership()
306 owner_password, in TakeOwnership()
1485 const std::string& owner_password) { in CreateStorageRootKeys() argument
1506 factory_.GetPasswordAuthorization(owner_password); in CreateStorageRootKeys()
1614 TPM_RC TpmUtilityImpl::CreateSaltingKey(const std::string& owner_password) { in CreateSaltingKey() argument
1688 factory_.GetPasswordAuthorization(owner_password); in CreateSaltingKey()
Dtrunks_factory_for_test.cc145 TPM_RC TakeOwnership(const std::string& owner_password, in TakeOwnership() argument
148 return target_->TakeOwnership(owner_password, in TakeOwnership()
Dtpm_utility_test.cc77 TPM_RC SetKnownOwnerPassword(const std::string& owner_password) { in SetKnownOwnerPassword() argument
78 return utility_.SetKnownOwnerPassword(owner_password); in SetKnownOwnerPassword()
81 TPM_RC CreateStorageRootKeys(const std::string& owner_password) { in CreateStorageRootKeys() argument
82 return utility_.CreateStorageRootKeys(owner_password); in CreateStorageRootKeys()
85 TPM_RC CreateSaltingKey(const std::string& owner_password) { in CreateSaltingKey() argument
86 return utility_.CreateSaltingKey(owner_password); in CreateSaltingKey()
/system/tpm/tpm_manager/common/
Dprint_local_data_proto.cc40 base::HexEncode(value.owner_password().data(), in GetProtoDebugStringWithIndent()
41 value.owner_password().size()) in GetProtoDebugStringWithIndent()
Dlocal_data.proto27 optional bytes owner_password = 2; field