Home | History | Annotate | Download | only in trunks

Lines Matching full:policy_session

37 #include "trunks/policy_session.h"
320 scoped_ptr<PolicySession> policy_session = factory_->GetPolicySession();
321 result = policy_session->StartUnboundSession(false);
326 result = policy_session->PolicyPCR(pcr_index, "");
333 result = utility->UnsealData(sealed_data, policy_session->GetDelegate(),
348 result = policy_session->PolicyPCR(pcr_index, "");
354 result = utility->UnsealData(sealed_data, policy_session->GetDelegate(),
452 scoped_ptr<PolicySession> policy_session = factory_->GetPolicySession();
453 result = policy_session->StartUnboundSession(false);
458 result = policy_session->PolicyAuthValue();
465 policy_session->SetEntityAuthorizationValue("password");
467 std::string(32, 0), policy_session->GetDelegate(),
488 result = policy_session->PolicyAuthValue();
495 policy_session->SetEntityAuthorizationValue("password");
498 policy_session->GetDelegate(),
580 scoped_ptr<PolicySession> policy_session = factory_->GetPolicySession();
581 result = policy_session->StartUnboundSession(false);
586 result = policy_session->PolicyCommandCode(TPM_CC_Sign);
591 result = policy_session->PolicyPCR(pcr_index, "");
597 policy_session->SetEntityAuthorizationValue(key_authorization);
600 std::string(32, 'a'), policy_session->GetDelegate(),
614 result = policy_session->StartUnboundSession(false);
619 result = policy_session->PolicyCommandCode(TPM_CC_Sign);
624 result = policy_session->PolicyPCR(pcr_index, "");
629 policy_session->SetEntityAuthorizationValue(key_authorization);
632 std::string(32, 'a'), policy_session->GetDelegate(),
651 result = policy_session->PolicyCommandCode(TPM_CC_Sign);
656 result = policy_session->PolicyPCR(pcr_index, "");
662 policy_session->SetEntityAuthorizationValue(key_authorization);
666 ciphertext, policy_session->GetDelegate(),
760 scoped_ptr<PolicySession> policy_session = factory_->GetPolicySession();
761 result = policy_session->StartUnboundSession(false);
773 result = policy_session->PolicyCommandCode(TPM_CC_RSA_Decrypt);
778 result = policy_session->PolicyOR(digests);
784 policy_session->SetEntityAuthorizationValue(key_authorization);
787 ciphertext, policy_session->GetDelegate(),
797 result = policy_session->PolicyCommandCode(TPM_CC_Sign);
802 result = policy_session->PolicyOR(digests);
808 policy_session->SetEntityAuthorizationValue(key_authorization);
812 std::string(32, 'a'), policy_session->GetDelegate(),