PolicySecret() private method

private PolicySecret ( TpmHandle authHandle, TpmHandle policySession, byte nonceTPM, byte cpHashA, byte policyRef, int expiration, [ policyTicket ) : byte[]
authHandle TpmHandle
policySession TpmHandle
nonceTPM byte
cpHashA byte
policyRef byte
expiration int
policyTicket [
return byte[]
Example #1
0
        internal override TpmRc Execute(Tpm2 tpm, AuthSession sess, PolicyTree policy)
        {
            byte[] nonceTpm = UseNonceTpm ? Globs.CopyData(sess.NonceTpm) : new byte[0];

            if (AuthSess != null)
            {
                tpm._SetSessions(AuthSess);
            }

            Timeout = tpm.PolicySecret(AuthEntity, sess, nonceTpm,
                                       CpHash, PolicyRef, ExpirationTime,
                                       out Ticket);
            return(tpm._GetLastResponseCode());
        }