Tpm2Lib.TpmHandle.IsSession C# (CSharp) Method

IsSession() private method

private IsSession ( ) : bool
return bool
        internal bool IsSession()
        {
            Ht range = GetType();
            return range == Ht.HmacSession || range == Ht.PolicySession || handle == (uint)TpmRh.TpmRsPw;
        }

Usage Example

Ejemplo n.º 1
0
 /// <summary>
 /// Constructs an object encapsulating a session opened in TPM. The Tpm2 object
 /// that was used to create the session tracks other information associated
 /// with it and uses it to compute session key and command/response HMAC.
 /// </summary>
 public AuthSession(TpmHandle h)
 {
     if (!h.IsSession())
     {
         Globs.Throw <ArgumentException>("AuthSession: Attempt to construct from non-session handle");
     }
     Handle = h;
 }
All Usage Examples Of Tpm2Lib.TpmHandle::IsSession