public class TPMS_PCR_SELECTION extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
TPM_ALG_ID |
hash
the hash algorithm associated with the selection
|
byte[] |
pcrSelect
the bit map of selected PCR
|
| Constructor and Description |
|---|
TPMS_PCR_SELECTION()
Table 87 Definition of TPMS_PCR_SELECTION Structure
|
TPMS_PCR_SELECTION(TPM_ALG_ID _hash,
byte[] _pcrSelect)
Table 87 Definition of TPMS_PCR_SELECTION Structure
|
TPMS_PCR_SELECTION(TPM_ALG_ID pcrAlg,
int pcrIndex)
Create a PCR_SELECTION naming a single PCR
|
TPMS_PCR_SELECTION(TPM_ALG_ID pcrAlg,
int[] pcrIndices)
Create a PCR_SELECTION from an array of PCRs in the same bank
|
| Modifier and Type | Method and Description |
|---|---|
static TPMS_PCR_SELECTION[] |
CreateSelectionArray(TPM_ALG_ID pcrAlg,
int pcrIndex)
Create a PCR_SELECTION[] from a single PCR
|
static TPMS_PCR_SELECTION |
fromTpm(byte[] x) |
static TPMS_PCR_SELECTION |
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_ALG_ID hash
public byte[] pcrSelect
public TPMS_PCR_SELECTION(TPM_ALG_ID _hash, byte[] _pcrSelect)
_hash - the hash algorithm associated with the selection_pcrSelect - the bit map of selected PCRpublic TPMS_PCR_SELECTION()
public TPMS_PCR_SELECTION(TPM_ALG_ID pcrAlg, int pcrIndex)
pcrAlg - The hash algorithmpcrIndex - The PCR indexpublic TPMS_PCR_SELECTION(TPM_ALG_ID pcrAlg, int[] pcrIndices)
pcrAlg - The hash algorithmpcrIndices - The PCRs to selectpublic void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPMS_PCR_SELECTION fromTpm(byte[] x)
public static TPMS_PCR_SELECTION fromTpm(InByteBuf buf)
public void toStringInternal(TpmStructurePrinter _p, int d)
TpmStructuretoStringInternal in class TpmStructure_p - The structure accumulatord - The data to serializepublic static TPMS_PCR_SELECTION[] CreateSelectionArray(TPM_ALG_ID pcrAlg, int pcrIndex)
pcrAlg - The hash algorithmpcrIndex - The PCR indexCopyright © 2017. All rights reserved.