public class TPM2_PolicySigned_REQUEST extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
TPMU_SIGNATURE |
auth
signed authorization (not optional)
|
TPM_HANDLE |
authObject
handle for a key that will validate the signature Auth Index: None
|
byte[] |
cpHashA
digest of the command parameters to which this authorization is limited This is not the cpHash for this command but the cpHash for the command to which this policy session will be applied.
|
int |
expiration
time when authorization will expire, measured in seconds from the time that nonceTPM was generated If expiration is non-negative, a NULL Ticket is returned.
|
byte[] |
nonceTPM
the policy nonce for the session This can be the Empty Buffer.
|
byte[] |
policyRef
a reference to a policy relating to the authorization may be the Empty Buffer Size is limited to be no larger than the nonce size supported on the TPM.
|
TPM_HANDLE |
policySession
handle for the policy session being extended Auth Index: None
|
| Constructor and Description |
|---|
TPM2_PolicySigned_REQUEST()
This command includes a signed authorization in a policy.
|
TPM2_PolicySigned_REQUEST(TPM_HANDLE _authObject,
TPM_HANDLE _policySession,
byte[] _nonceTPM,
byte[] _cpHashA,
byte[] _policyRef,
int _expiration,
TPMU_SIGNATURE _auth)
This command includes a signed authorization in a policy.
|
| Modifier and Type | Method and Description |
|---|---|
static TPM2_PolicySigned_REQUEST |
fromTpm(byte[] x) |
static TPM2_PolicySigned_REQUEST |
fromTpm(InByteBuf buf) |
int |
GetUnionSelector_auth() |
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 authObject
public TPM_HANDLE policySession
public byte[] nonceTPM
public byte[] cpHashA
public byte[] policyRef
public int expiration
public TPMU_SIGNATURE auth
public TPM2_PolicySigned_REQUEST(TPM_HANDLE _authObject, TPM_HANDLE _policySession, byte[] _nonceTPM, byte[] _cpHashA, byte[] _policyRef, int _expiration, TPMU_SIGNATURE _auth)
_authObject - handle for a key that will validate the signature Auth Index: None_policySession - handle for the policy session being extended Auth Index: None_nonceTPM - the policy nonce for the session This can be the Empty Buffer._cpHashA - digest of the command parameters to which this authorization is limited This is not the cpHash for this command but the cpHash for the command to which this policy session will be applied. If it is not limited, the parameter will be the Empty Buffer._policyRef - a reference to a policy relating to the authorization may be the Empty Buffer Size is limited to be no larger than the nonce size supported on the TPM._expiration - time when authorization will expire, measured in seconds from the time that nonceTPM was generated If expiration is non-negative, a NULL Ticket is returned. See 23.2.5._auth - signed authorization (not optional) (One of TPMS_SIGNATURE_RSASSA, TPMS_SIGNATURE_RSAPSS, TPMS_SIGNATURE_ECDSA, TPMS_SIGNATURE_ECDAA, TPMS_SIGNATURE_SM2, TPMS_SIGNATURE_ECSCHNORR, TpmHash, TPMS_SCHEME_HASH, TPMS_NULL_SIGNATURE)public TPM2_PolicySigned_REQUEST()
public int GetUnionSelector_auth()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPM2_PolicySigned_REQUEST fromTpm(byte[] x)
public static TPM2_PolicySigned_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.