public class TPMT_HA extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
byte[] |
digest
Hash value
|
TPM_ALG_ID |
hashAlg
Algorithm
|
| Constructor and Description |
|---|
TPMT_HA()
TPM Hash structure
|
TPMT_HA(TPM_ALG_ID _hashAlg,
byte[] _digest)
TPM Hash structure
|
| Modifier and Type | Method and Description |
|---|---|
TPMT_HA |
event(byte[] x)
Perform a TPM Event operation on the contents of this TPMT_HA
|
TPMT_HA |
extend(byte[] x)
Perform a TPM Extend operation on the contents of this TPMT_HA
|
static TPMT_HA |
fromHashOf(TPM_ALG_ID hashAlg,
byte[] data)
Create a TPMT_HA from the hash of data
|
static TPMT_HA |
fromHashOf(TPM_ALG_ID hashAlg,
String s)
Create a TPMT_HA from the hash of a UTF8 encoded string
|
static TPMT_HA |
fromTpm(byte[] x) |
static TPMT_HA |
fromTpm(InByteBuf buf) |
void |
initFromTpm(InByteBuf buf)
Populate this object from the TPM representation in the input byte buffer object
|
void |
reset()
Reset the contents of this hash object to all zeros
|
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
|
static TPMT_HA |
zeroHash(TPM_ALG_ID alg)
Create an all zero hash object
|
equals, hashCodepublic TPM_ALG_ID hashAlg
public byte[] digest
public TPMT_HA(TPM_ALG_ID _hashAlg, byte[] _digest)
_hashAlg - Algorithm_digest - Hash valuepublic TPMT_HA()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPMT_HA fromTpm(byte[] x)
public static TPMT_HA fromHashOf(TPM_ALG_ID hashAlg, byte[] data)
hashAlg - The hash algorithmdata - The data to hashpublic static TPMT_HA fromHashOf(TPM_ALG_ID hashAlg, String s)
hashAlg - The hash algorithms - The string to hashpublic TPMT_HA extend(byte[] x)
x - The data to extendpublic TPMT_HA event(byte[] x)
x - The data to eventpublic void reset()
public static TPMT_HA zeroHash(TPM_ALG_ID alg)
alg - The hash algorithm to usepublic void toStringInternal(TpmStructurePrinter _p, int d)
TpmStructuretoStringInternal in class TpmStructure_p - The structure accumulatord - The data to serializeCopyright © 2017. All rights reserved.