Property | Type | Description | |
---|---|---|---|
Attrs | SessionAttr | ||
AuthHash | TpmAlgId | ||
BindObject | |||
NonceCaller | byte[] | ||
NonceTpm | byte[] | ||
Salt | byte[] | ||
SessionKey | byte[] | ||
SessionType | TpmSe | ||
Symmetric |
Method | Description | |
---|---|---|
AuthSession ( |
||
AuthSession ( |
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.
|
|
NewNonceCaller ( ) : void | ||
RunPolicy ( |
Run a path on the policy tree. The path is identified by the leaf identifier string. A session is created and returned. If allowErrors is true then errors returned do not cause an exception (but are returned in the response code).
|
|
SetNonceTpm ( byte nonceTpm ) : void |
Method | Description | |
---|---|---|
AuthSession ( ) : System |
Method | Description | |
---|---|---|
AuthSession ( TpmSe sessionType, |
Constructs a temporary object to hold parameters of a session. Intended only for internal use by the Tpm2 class.
|
|
CalcSessionKey ( ) : void |
Calculate the session-key from the nonces and salt/bound values (if present)
|
|
CanEncrypt ( ) : bool |
Checks whether the given session can be used for parameter encryption.
|
|
GetAuthHmac ( byte parmHash, Direction direction, byte nonceDec = null, byte nonceEnc = null ) : byte[] |
Calculate and return the auth-hmac (or plaintext auth if it is a policy session with PlaintextAuth set) based on the current session parms.
|
|
Init ( |
Sets parameters associated with the session.
|
|
Initialized ( ) : bool |
Returns true if the parameters associated with the session context in TPM have been set in this object.
|
|
ParmEncrypt ( byte parm, Direction inOrOut ) : byte[] |
public AuthSession ( |
||
ph | ||
return | System |
public RunPolicy ( |
||
tpm | ||
policyTree | ||
branchToEvaluate | string | |
allowErrors | bool | |
return | TpmRc |