Searched refs:trial_session (Results 1 – 3 of 3) sorted by relevance
398 std::unique_ptr<PolicySession> trial_session = factory_.GetTrialSession(); in PolicyAuthValueTest() local400 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() local509 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 …]
98 void set_trial_session(PolicySession* trial_session) { in set_trial_session() argument99 trial_session_ = trial_session; in set_trial_session()
580 std::unique_ptr<trunks::PolicySession> trial_session; in ComputePolicyDigest() local585 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()