/system/tpm/tpm_manager/server/ |
D | tpm2_initializer_impl.cc | 68 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()
|
D | tpm_initializer_impl.cc | 62 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()
|
D | tpm_nvram_impl.cc | 277 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()
|
D | tpm2_initializer_test.cc | 107 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()
|
D | tpm_connection.cc | 58 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()
|
D | tpm_initializer_impl.h | 75 const std::string& owner_password); 80 bool TestTpmAuth(const std::string& owner_password);
|
D | tpm_connection.h | 42 TSS_HTPM GetTpmWithAuth(const std::string& owner_password);
|
D | tpm2_nvram_impl.cc | 64 if (!local_data.owner_password().empty()) { in Initialize() 65 owner_password_.assign(local_data.owner_password()); in Initialize()
|
D | tpm_nvram_impl.h | 67 bool GetOwnerPassword(std::string* owner_password);
|
D | tpm2_nvram_test.cc | 57 void InitializeNvram(const std::string& owner_password) { in InitializeNvram() argument 59 local_data.set_owner_password(owner_password); in InitializeNvram()
|
D | tpm_manager_service_test.cc | 165 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/ |
D | trunks_client.cc | 82 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()
|
D | tpm_utility_impl.h | 48 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);
|
D | trunks_client_test.h | 97 bool NvramTest(const std::string& owner_password);
|
D | trunks_client_test.cc | 821 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()
|
D | tpm_utility.h | 78 virtual TPM_RC TakeOwnership(const std::string& owner_password,
|
D | tpm_utility_impl.cc | 248 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()
|
D | trunks_factory_for_test.cc | 145 TPM_RC TakeOwnership(const std::string& owner_password, in TakeOwnership() argument 148 return target_->TakeOwnership(owner_password, in TakeOwnership()
|
D | tpm_utility_test.cc | 77 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/ |
D | print_local_data_proto.cc | 40 base::HexEncode(value.owner_password().data(), in GetProtoDebugStringWithIndent() 41 value.owner_password().size()) in GetProtoDebugStringWithIndent()
|
D | local_data.proto | 27 optional bytes owner_password = 2; field
|