public class TPM2_StartAuthSession_REQUEST extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
TPM_ALG_ID |
authHash
hash algorithm to use for the session Shall be a hash algorithm supported by the TPM and not TPM_ALG_NULL
|
TPM_HANDLE |
bind
entity providing the authValue may be TPM_RH_NULL Auth Index: None
|
byte[] |
encryptedSalt
value encrypted according to the type of tpmKey If tpmKey is TPM_RH_NULL, this shall be the Empty Buffer.
|
byte[] |
nonceCaller
initial nonceCaller, sets nonceTPM size for the session shall be at least 16 octets
|
TPM_SE |
sessionType
indicates the type of the session; simple HMAC or policy (including a trial policy)
|
TPMT_SYM_DEF |
symmetric
the algorithm and key size for parameter encryption may select TPM_ALG_NULL
|
TPM_HANDLE |
tpmKey
handle of a loaded decrypt key used to encrypt salt may be TPM_RH_NULL Auth Index: None
|
| Constructor and Description |
|---|
TPM2_StartAuthSession_REQUEST()
This command is used to start an authorization session using alternative methods of establishing the session key (sessionKey).
|
TPM2_StartAuthSession_REQUEST(TPM_HANDLE _tpmKey,
TPM_HANDLE _bind,
byte[] _nonceCaller,
byte[] _encryptedSalt,
TPM_SE _sessionType,
TPMT_SYM_DEF _symmetric,
TPM_ALG_ID _authHash)
This command is used to start an authorization session using alternative methods of establishing the session key (sessionKey).
|
| Modifier and Type | Method and Description |
|---|---|
static TPM2_StartAuthSession_REQUEST |
fromTpm(byte[] x) |
static TPM2_StartAuthSession_REQUEST |
fromTpm(InByteBuf buf) |
void |
initFromTpm(InByteBuf buf)
Populate this object from the TPM representation in the input byte buffer object
|
String |
toString() |
void |
toStringInternal(TpmStructurePrinter _p,
int d)
Serialize this object to the structure printer
|
byte[] |
toTpm()
Convert this object to its TPM representation and return it as a byte array
|
void |
toTpm(OutByteBuf buf)
Convert this object to its TPM representation and store in the output byte buffer object
|
equals, hashCodepublic TPM_HANDLE tpmKey
public TPM_HANDLE bind
public byte[] nonceCaller
public byte[] encryptedSalt
public TPM_SE sessionType
public TPMT_SYM_DEF symmetric
public TPM_ALG_ID authHash
public TPM2_StartAuthSession_REQUEST(TPM_HANDLE _tpmKey, TPM_HANDLE _bind, byte[] _nonceCaller, byte[] _encryptedSalt, TPM_SE _sessionType, TPMT_SYM_DEF _symmetric, TPM_ALG_ID _authHash)
_tpmKey - handle of a loaded decrypt key used to encrypt salt may be TPM_RH_NULL Auth Index: None_bind - entity providing the authValue may be TPM_RH_NULL Auth Index: None_nonceCaller - initial nonceCaller, sets nonceTPM size for the session shall be at least 16 octets_encryptedSalt - value encrypted according to the type of tpmKey If tpmKey is TPM_RH_NULL, this shall be the Empty Buffer._sessionType - indicates the type of the session; simple HMAC or policy (including a trial policy)_symmetric - the algorithm and key size for parameter encryption may select TPM_ALG_NULL_authHash - hash algorithm to use for the session Shall be a hash algorithm supported by the TPM and not TPM_ALG_NULLpublic TPM2_StartAuthSession_REQUEST()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPM2_StartAuthSession_REQUEST fromTpm(byte[] x)
public static TPM2_StartAuthSession_REQUEST fromTpm(InByteBuf buf)
public void toStringInternal(TpmStructurePrinter _p, int d)
TpmStructuretoStringInternal in class TpmStructure_p - The structure accumulatord - The data to serializeCopyright © 2017. All rights reserved.