Package tss.tpm
Class DuplicateResponse
- java.lang.Object
-
- tss.TpmStructure
-
- tss.CmdStructure
-
- tss.RespStructure
-
- tss.tpm.DuplicateResponse
-
- All Implemented Interfaces:
TpmMarshaller
public class DuplicateResponse extends RespStructure
This command duplicates a loaded object so that it may be used in a different hierarchy. The new parent key for the duplicate may be on the same or different TPM or TPM_RH_NULL. Only the public area of newParentHandle is required to be loaded.
-
-
Field Summary
Fields Modifier and Type Field Description TPM2B_PRIVATE
duplicate
Private area that may be encrypted by encryptionKeyIn; and may be doubly encryptedbyte[]
encryptionKeyOut
If the caller provided an encryption key or if symmetricAlg was TPM_ALG_NULL, then this will be the Empty Buffer; otherwise, it shall contain the TPM-generated, symmetric encryption key for the inner wrapper.byte[]
outSymSeed
Seed protected by the asymmetric algorithms of new parent (NP)
-
Constructor Summary
Constructors Constructor Description DuplicateResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DuplicateResponse
fromBytes(byte[] byteBuf)
Static marshaling helperstatic DuplicateResponse
fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
insteadstatic DuplicateResponse
fromTpm(TpmBuffer buf)
Static marshaling helpervoid
initFromTpm(TpmBuffer buf)
TpmMarshaller methodSessEncInfo
sessEncInfo()
String
toString()
void
toStringInternal(TpmStructurePrinter _p, int d)
Serialize this object to the structure printerbyte[]
toTpm()
Deprecated.UseTpmStructure.toBytes()
insteadvoid
toTpm(TpmBuffer buf)
TpmMarshaller method-
Methods inherited from class tss.RespStructure
getHandle, setHandle, typeName
-
Methods inherited from class tss.CmdStructure
numHandles
-
Methods inherited from class tss.TpmStructure
equals, hashCode, toBytes
-
-
-
-
Field Detail
-
encryptionKeyOut
public byte[] encryptionKeyOut
If the caller provided an encryption key or if symmetricAlg was TPM_ALG_NULL, then this will be the Empty Buffer; otherwise, it shall contain the TPM-generated, symmetric encryption key for the inner wrapper.
-
duplicate
public TPM2B_PRIVATE duplicate
Private area that may be encrypted by encryptionKeyIn; and may be doubly encrypted
-
outSymSeed
public byte[] outSymSeed
Seed protected by the asymmetric algorithms of new parent (NP)
-
-
Method Detail
-
toTpm
public void toTpm(TpmBuffer buf)
TpmMarshaller method- Specified by:
toTpm
in interfaceTpmMarshaller
- Overrides:
toTpm
in classTpmStructure
- Parameters:
buf
- An output byte buffer
-
initFromTpm
public void initFromTpm(TpmBuffer buf)
TpmMarshaller method- Specified by:
initFromTpm
in interfaceTpmMarshaller
- Overrides:
initFromTpm
in classTpmStructure
- Parameters:
buf
- An input byte buffer
-
toTpm
public byte[] toTpm()
Deprecated.UseTpmStructure.toBytes()
instead- Returns:
- Wire (marshaled) representation of this object
-
fromBytes
public static DuplicateResponse fromBytes(byte[] byteBuf)
Static marshaling helper- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static DuplicateResponse fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
instead- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static DuplicateResponse fromTpm(TpmBuffer buf)
Static marshaling helper- Parameters:
buf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
toStringInternal
public void toStringInternal(TpmStructurePrinter _p, int d)
Description copied from class:TpmStructure
Serialize this object to the structure printer- Overrides:
toStringInternal
in classTpmStructure
- Parameters:
_p
- The structure accumulatord
- The data to serialize
-
sessEncInfo
public SessEncInfo sessEncInfo()
- Overrides:
sessEncInfo
in classCmdStructure
- Returns:
- Non-zero size info of the encryptable command/response parameter if session based encryption can be applied to this object (i.e. its first non-handle field is marshaled in size-prefixed form). Otherwise returns zero initialized struct.
-
-