public class TPM2_Duplicate_REQUEST extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
byte[] |
encryptionKeyIn
optional symmetric encryption key The size for this key is set to zero when the TPM is to generate the key.
|
TPM_HANDLE |
newParentHandle
shall reference the public area of an asymmetric key Auth Index: None
|
TPM_HANDLE |
objectHandle
loaded object to duplicate Auth Index: 1 Auth Role: DUP
|
TPMT_SYM_DEF_OBJECT |
symmetricAlg
definition for the symmetric algorithm to be used for the inner wrapper may be TPM_ALG_NULL if no inner wrapper is applied
|
| Constructor and Description |
|---|
TPM2_Duplicate_REQUEST()
This command duplicates a loaded object so that it may be used in a different hierarchy.
|
TPM2_Duplicate_REQUEST(TPM_HANDLE _objectHandle,
TPM_HANDLE _newParentHandle,
byte[] _encryptionKeyIn,
TPMT_SYM_DEF_OBJECT _symmetricAlg)
This command duplicates a loaded object so that it may be used in a different hierarchy.
|
| Modifier and Type | Method and Description |
|---|---|
static TPM2_Duplicate_REQUEST |
fromTpm(byte[] x) |
static TPM2_Duplicate_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 objectHandle
public TPM_HANDLE newParentHandle
public byte[] encryptionKeyIn
public TPMT_SYM_DEF_OBJECT symmetricAlg
public TPM2_Duplicate_REQUEST(TPM_HANDLE _objectHandle, TPM_HANDLE _newParentHandle, byte[] _encryptionKeyIn, TPMT_SYM_DEF_OBJECT _symmetricAlg)
_objectHandle - loaded object to duplicate Auth Index: 1 Auth Role: DUP_newParentHandle - shall reference the public area of an asymmetric key Auth Index: None_encryptionKeyIn - optional symmetric encryption key The size for this key is set to zero when the TPM is to generate the key. This parameter may be encrypted._symmetricAlg - definition for the symmetric algorithm to be used for the inner wrapper may be TPM_ALG_NULL if no inner wrapper is appliedpublic TPM2_Duplicate_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_Duplicate_REQUEST fromTpm(byte[] x)
public static TPM2_Duplicate_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.