IsSession() private method

private IsSession ( ) : bool
return bool
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;
 }
Ejemplo n.º 2
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())
     {
         throw new Exception("Attempt to construct AuthSession object from non-session handle");
     }
     Handle = h;
 }
Ejemplo n.º 3
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;
 }
Ejemplo n.º 4
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())
     {
         throw new Exception("Attempt to construct AuthSession object from non-session handle");
     }
     Handle = h;
 }