Home
last modified time | relevance | path

Searched refs:pcr_index (Results 1 – 10 of 10) sorted by relevance

/system/tpm/trunks/
Dpolicy_session_impl.cc116 TPM_RC PolicySessionImpl::PolicyPCR(uint32_t pcr_index, in PolicyPCR() argument
122 uint8_t pcr_select_index = pcr_index / 8; in PolicyPCR()
123 uint8_t pcr_select_byte = 1 << (pcr_index % 8); in PolicyPCR()
Dtrunks_factory_for_test.cc164 TPM_RC ExtendPCR(int pcr_index, in ExtendPCR() argument
167 return target_->ExtendPCR(pcr_index, extend_data, delegate); in ExtendPCR()
170 TPM_RC ReadPCR(int pcr_index, std::string* pcr_value) override { in ReadPCR() argument
171 return target_->ReadPCR(pcr_index, pcr_value); in ReadPCR()
302 TPM_RC GetPolicyDigestForPcrValue(int pcr_index, in GetPolicyDigestForPcrValue() argument
305 return target_->GetPolicyDigestForPcrValue(pcr_index, pcr_value, in GetPolicyDigestForPcrValue()
480 TPM_RC PolicyPCR(uint32_t pcr_index, const std::string& pcr_value) override { in PolicyPCR() argument
481 return target_->PolicyPCR(pcr_index, pcr_value); in PolicyPCR()
Dtrunks_client_test.cc304 int pcr_index = 5; in SealedDataTest() local
306 TPM_RC result = utility->GetPolicyDigestForPcrValue(pcr_index, "", in SealedDataTest()
326 result = policy_session->PolicyPCR(pcr_index, ""); in SealedDataTest()
343 result = utility->ExtendPCR(pcr_index, "extend", session->GetDelegate()); in SealedDataTest()
348 result = policy_session->PolicyPCR(pcr_index, ""); in SealedDataTest()
371 uint32_t pcr_index = 2; in PCRTest() local
374 TPM_RC result = utility->ReadPCR(pcr_index, &old_data); in PCRTest()
379 result = utility->ExtendPCR(pcr_index, extend_data, session->GetDelegate()); in PCRTest()
385 result = utility->ReadPCR(pcr_index, &pcr_data); in PCRTest()
525 uint32_t pcr_index = 2; in PolicyAndTest() local
[all …]
Dpolicy_session_test.cc160 int pcr_index = 1; in TEST_F() local
167 EXPECT_EQ(TPM_RC_SUCCESS, session.PolicyPCR(pcr_index, pcr_digest)); in TEST_F()
168 uint8_t pcr_select_index = pcr_index / 8; in TEST_F()
169 uint8_t pcr_select_byte = 1 << (pcr_index % 8); in TEST_F()
Dtpm_utility.h97 virtual TPM_RC ExtendPCR(int pcr_index,
103 virtual TPM_RC ReadPCR(int pcr_index, std::string* pcr_value) = 0;
248 virtual TPM_RC GetPolicyDigestForPcrValue(int pcr_index,
Dtpm_utility_impl.h56 TPM_RC ExtendPCR(int pcr_index,
59 TPM_RC ReadPCR(int pcr_index, std::string* pcr_value) override;
121 TPM_RC GetPolicyDigestForPcrValue(int pcr_index,
Dpolicy_session.h66 virtual TPM_RC PolicyPCR(uint32_t pcr_index,
Dpolicy_session_impl.h60 TPM_RC PolicyPCR(uint32_t pcr_index, const std::string& pcr_value) override;
Dtpm_utility_impl.cc351 TPM_RC TpmUtilityImpl::ExtendPCR(int pcr_index, in ExtendPCR() argument
354 if (pcr_index < 0 || pcr_index >= IMPLEMENTATION_PCR) { in ExtendPCR()
358 TPM_HANDLE pcr_handle = HR_PCR + pcr_index; in ExtendPCR()
372 TPM_RC TpmUtilityImpl::ReadPCR(int pcr_index, std::string* pcr_value) { in ReadPCR() argument
379 uint8_t pcr_select_index = pcr_index / 8; in ReadPCR()
380 uint8_t pcr_select_byte = 1 << (pcr_index % 8); in ReadPCR()
1143 TPM_RC TpmUtilityImpl::GetPolicyDigestForPcrValue(int pcr_index, in GetPolicyDigestForPcrValue() argument
1156 result = ReadPCR(pcr_index, &mutable_pcr_value); in GetPolicyDigestForPcrValue()
1164 result = session->PolicyPCR(pcr_index, mutable_pcr_value); in GetPolicyDigestForPcrValue()
Dtpm_utility_test.cc442 int pcr_index = 0; in TEST_F() local
443 TPM_HANDLE pcr_handle = HR_PCR + pcr_index; in TEST_F()
447 utility_.ExtendPCR(pcr_index, "test digest", nullptr)); in TEST_F()
457 int pcr_index = 1; in TEST_F() local
471 EXPECT_EQ(TPM_RC_SUCCESS, utility_.ReadPCR(pcr_index, &pcr_value)); in TEST_F()