public class TPM2_Import_REQUEST extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
TPM2B_PRIVATE |
duplicate
the symmetrically encrypted duplicate object that may contain an inner symmetric wrapper
|
byte[] |
encryptionKey
the optional symmetric encryption key used as the inner wrapper for duplicate If symmetricAlg is TPM_ALG_NULL, then this parameter shall be the Empty Buffer.
|
byte[] |
inSymSeed
the seed for the symmetric key and HMAC key inSymSeed is encrypted/encoded using the algorithms of newParent.
|
TPMT_PUBLIC |
objectPublic
the public area of the object to be imported This is provided so that the integrity value for duplicate and the object attributes can be checked.
|
TPM_HANDLE |
parentHandle
the handle of the new parent for the object Auth Index: 1 Auth Role: USER
|
TPMT_SYM_DEF_OBJECT |
symmetricAlg
definition for the symmetric algorithm to use for the inner wrapper If this algorithm is TPM_ALG_NULL, no inner wrapper is present and encryptionKey shall be the Empty Buffer.
|
| Constructor and Description |
|---|
TPM2_Import_REQUEST()
This command allows an object to be encrypted using the symmetric encryption values of a Storage Key.
|
TPM2_Import_REQUEST(TPM_HANDLE _parentHandle,
byte[] _encryptionKey,
TPMT_PUBLIC _objectPublic,
TPM2B_PRIVATE _duplicate,
byte[] _inSymSeed,
TPMT_SYM_DEF_OBJECT _symmetricAlg)
This command allows an object to be encrypted using the symmetric encryption values of a Storage Key.
|
| Modifier and Type | Method and Description |
|---|---|
static TPM2_Import_REQUEST |
fromTpm(byte[] x) |
static TPM2_Import_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 parentHandle
public byte[] encryptionKey
public TPMT_PUBLIC objectPublic
public TPM2B_PRIVATE duplicate
public byte[] inSymSeed
public TPMT_SYM_DEF_OBJECT symmetricAlg
public TPM2_Import_REQUEST(TPM_HANDLE _parentHandle, byte[] _encryptionKey, TPMT_PUBLIC _objectPublic, TPM2B_PRIVATE _duplicate, byte[] _inSymSeed, TPMT_SYM_DEF_OBJECT _symmetricAlg)
_parentHandle - the handle of the new parent for the object Auth Index: 1 Auth Role: USER_encryptionKey - the optional symmetric encryption key used as the inner wrapper for duplicate If symmetricAlg is TPM_ALG_NULL, then this parameter shall be the Empty Buffer._objectPublic - the public area of the object to be imported This is provided so that the integrity value for duplicate and the object attributes can be checked. NOTE Even if the integrity value of the object is not checked on input, the object Name is required to create the integrity value for the imported object._duplicate - the symmetrically encrypted duplicate object that may contain an inner symmetric wrapper_inSymSeed - the seed for the symmetric key and HMAC key inSymSeed is encrypted/encoded using the algorithms of newParent._symmetricAlg - definition for the symmetric algorithm to use for the inner wrapper If this algorithm is TPM_ALG_NULL, no inner wrapper is present and encryptionKey shall be the Empty Buffer.public TPM2_Import_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_Import_REQUEST fromTpm(byte[] x)
public static TPM2_Import_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.