Home
last modified time | relevance | path

Searched refs:trial_session (Results 1 – 3 of 3) sorted by relevance

/system/tpm/trunks/
Dtrunks_client_test.cc398 std::unique_ptr<PolicySession> trial_session = factory_.GetTrialSession(); in PolicyAuthValueTest() local
400 result = trial_session->StartUnboundSession(true); in PolicyAuthValueTest()
405 result = trial_session->PolicyAuthValue(); in PolicyAuthValueTest()
412 result = trial_session->GetDigest(&policy_digest); in PolicyAuthValueTest()
418 trial_session.reset(); in PolicyAuthValueTest()
507 std::unique_ptr<PolicySession> trial_session = factory_.GetTrialSession(); in PolicyAndTest() local
509 result = trial_session->StartUnboundSession(true); in PolicyAndTest()
514 result = trial_session->PolicyCommandCode(TPM_CC_Sign); in PolicyAndTest()
531 result = trial_session->PolicyPCR(pcr_index, next_pcr_value); in PolicyAndTest()
537 result = trial_session->GetDigest(&policy_digest); in PolicyAndTest()
[all …]
Dtrunks_factory_for_test.h98 void set_trial_session(PolicySession* trial_session) { in set_trial_session() argument
99 trial_session_ = trial_session; in set_trial_session()
/system/tpm/tpm_manager/server/
Dtpm2_nvram_impl.cc580 std::unique_ptr<trunks::PolicySession> trial_session; in ComputePolicyDigest() local
585 trial_session = trunks_factory_.GetTrialSession(); in ComputePolicyDigest()
586 if (trial_session->StartUnboundSession(false /* enable_encryption */) != in ComputePolicyDigest()
591 trial_session.get())) { in ComputePolicyDigest()
594 if (trial_session->GetDigest(digest) != TPM_RC_SUCCESS) { in ComputePolicyDigest()
599 if (!AddPolicyOR(*policy_record, trial_session.get())) { in ComputePolicyDigest()
602 if (trial_session->GetDigest(digest) != TPM_RC_SUCCESS) { in ComputePolicyDigest()