/system/tpm/trunks/ |
policy_session.h | 66 virtual TPM_RC PolicyPCR(uint32_t pcr_index,
|
policy_session_impl.cc | 116 TPM_RC PolicySessionImpl::PolicyPCR(uint32_t pcr_index, 122 uint8_t pcr_select_index = pcr_index / 8; 123 uint8_t pcr_select_byte = 1 << (pcr_index % 8);
|
tpm_utility.h | 93 // This method extends the pcr specified by |pcr_index| with the SHA256 97 virtual TPM_RC ExtendPCR(int pcr_index, 101 // This method reads the pcr specified by |pcr_index| and returns its value 103 virtual TPM_RC ReadPCR(int pcr_index, std::string* pcr_value) = 0; 246 // the policy is bound to a given |pcr_value| at |pcr_index|. If |pcr_value| 248 virtual TPM_RC GetPolicyDigestForPcrValue(int pcr_index,
|
policy_session_impl.h | 38 // session.PolicyPCR(pcr_index, pcr_value); 60 TPM_RC PolicyPCR(uint32_t pcr_index, const std::string& pcr_value) override;
|
trunks_factory_for_test.cc | 164 TPM_RC ExtendPCR(int pcr_index, 167 return target_->ExtendPCR(pcr_index, extend_data, delegate); 170 TPM_RC ReadPCR(int pcr_index, std::string* pcr_value) override { 171 return target_->ReadPCR(pcr_index, pcr_value); 302 TPM_RC GetPolicyDigestForPcrValue(int pcr_index, 305 return target_->GetPolicyDigestForPcrValue(pcr_index, pcr_value, 480 TPM_RC PolicyPCR(uint32_t pcr_index, const std::string& pcr_value) override { 481 return target_->PolicyPCR(pcr_index, pcr_value);
|
policy_session_test.cc | 160 int pcr_index = 1; local 167 EXPECT_EQ(TPM_RC_SUCCESS, session.PolicyPCR(pcr_index, pcr_digest)); 168 uint8_t pcr_select_index = pcr_index / 8; 169 uint8_t pcr_select_byte = 1 << (pcr_index % 8);
|
trunks_client_test.cc | 304 int pcr_index = 5; local 306 TPM_RC result = utility->GetPolicyDigestForPcrValue(pcr_index, "", 326 result = policy_session->PolicyPCR(pcr_index, ""); 343 result = utility->ExtendPCR(pcr_index, "extend", session->GetDelegate()); 348 result = policy_session->PolicyPCR(pcr_index, ""); 371 uint32_t pcr_index = 2; local 374 TPM_RC result = utility->ReadPCR(pcr_index, &old_data); 379 result = utility->ExtendPCR(pcr_index, extend_data, session->GetDelegate()); 385 result = utility->ReadPCR(pcr_index, &pcr_data); 525 uint32_t pcr_index = 2 local [all...] |
tpm_utility_impl.h | 56 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,
|
tpm_utility_impl.cc | 351 TPM_RC TpmUtilityImpl::ExtendPCR(int pcr_index, 354 if (pcr_index < 0 || pcr_index >= IMPLEMENTATION_PCR) { 358 TPM_HANDLE pcr_handle = HR_PCR + pcr_index; 372 TPM_RC TpmUtilityImpl::ReadPCR(int pcr_index, std::string* pcr_value) { 379 uint8_t pcr_select_index = pcr_index / 8; 380 uint8_t pcr_select_byte = 1 << (pcr_index % 8); [all...] |
tpm_utility_test.cc | 442 int pcr_index = 0; local 443 TPM_HANDLE pcr_handle = HR_PCR + pcr_index; 447 utility_.ExtendPCR(pcr_index, "test digest", nullptr)); 455 // The |pcr_index| is chosen to match the structure for |pcr_select|. 456 // If you change |pcr_index|, remember to change |pcr_select|. 457 int pcr_index = 1; local 471 EXPECT_EQ(TPM_RC_SUCCESS, utility_.ReadPCR(pcr_index, &pcr_value)); [all...] |