public class TPM2_EncryptDecrypt2_REQUEST extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
byte |
decrypt
if YES, then the operation is decryption; if NO, the operation is encryption
|
byte[] |
inData
the data to be encrypted/decrypted
|
byte[] |
ivIn
an initial value as required by the algorithm
|
TPM_HANDLE |
keyHandle
the symmetric key used for the operation Auth Index: 1 Auth Role: USER
|
TPM_ALG_ID |
mode
symmetric mode this field shall match the default mode of the key or be TPM_ALG_NULL.
|
| Constructor and Description |
|---|
TPM2_EncryptDecrypt2_REQUEST()
This command is identical to TPM2_EncryptDecrypt(), except that the inData parameter is the first parameter.
|
TPM2_EncryptDecrypt2_REQUEST(TPM_HANDLE _keyHandle,
byte[] _inData,
byte _decrypt,
TPM_ALG_ID _mode,
byte[] _ivIn)
This command is identical to TPM2_EncryptDecrypt(), except that the inData parameter is the first parameter.
|
| Modifier and Type | Method and Description |
|---|---|
static TPM2_EncryptDecrypt2_REQUEST |
fromTpm(byte[] x) |
static TPM2_EncryptDecrypt2_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 keyHandle
public byte[] inData
public byte decrypt
public TPM_ALG_ID mode
public byte[] ivIn
public TPM2_EncryptDecrypt2_REQUEST(TPM_HANDLE _keyHandle, byte[] _inData, byte _decrypt, TPM_ALG_ID _mode, byte[] _ivIn)
_keyHandle - the symmetric key used for the operation Auth Index: 1 Auth Role: USER_inData - the data to be encrypted/decrypted_decrypt - if YES, then the operation is decryption; if NO, the operation is encryption_mode - symmetric mode this field shall match the default mode of the key or be TPM_ALG_NULL._ivIn - an initial value as required by the algorithmpublic TPM2_EncryptDecrypt2_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_EncryptDecrypt2_REQUEST fromTpm(byte[] x)
public static TPM2_EncryptDecrypt2_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.