/// <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;
}