public class TPMT_SYM_DEF_OBJECT extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
TPM_ALG_ID |
algorithm
symmetric algorithm
|
short |
keyBits
key size in bits
|
TPM_ALG_ID |
mode
encryption mode
|
| Constructor and Description |
|---|
TPMT_SYM_DEF_OBJECT()
This structure is used when different symmetric block cipher (not XOR) algorithms may be selected.
|
TPMT_SYM_DEF_OBJECT(TPM_ALG_ID _algorithm,
int _keyBits,
TPM_ALG_ID _mode)
This structure is used when different symmetric block cipher (not XOR) algorithms may be selected.
|
| Modifier and Type | Method and Description |
|---|---|
static TPMT_SYM_DEF_OBJECT |
fromTpm(byte[] x) |
static TPMT_SYM_DEF_OBJECT |
fromTpm(InByteBuf buf) |
void |
initFromTpm(InByteBuf buf)
Populate this object from the TPM representation in the input byte buffer object
|
static TPMT_SYM_DEF_OBJECT |
nullObject()
Create a NULL TPMT_SYM_DEF_OBJECT 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_ALG_ID algorithm
public short keyBits
public TPM_ALG_ID mode
public TPMT_SYM_DEF_OBJECT(TPM_ALG_ID _algorithm, int _keyBits, TPM_ALG_ID _mode)
_algorithm - symmetric algorithm_keyBits - key size in bits_mode - encryption modepublic TPMT_SYM_DEF_OBJECT()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPMT_SYM_DEF_OBJECT fromTpm(byte[] x)
public static TPMT_SYM_DEF_OBJECT fromTpm(InByteBuf buf)
public void toStringInternal(TpmStructurePrinter _p, int d)
TpmStructuretoStringInternal in class TpmStructure_p - The structure accumulatord - The data to serializepublic static TPMT_SYM_DEF_OBJECT nullObject()
Copyright © 2017. All rights reserved.