public class TPMS_NV_PUBLIC extends TpmStructure
| Modifier and Type | Field and Description |
|---|---|
TPMA_NV |
attributes
the Index attributes
|
byte[] |
authPolicy
optional access policy for the Index The policy is computed using the nameAlg NOTE Shall be the Empty Policy if no authorization policy is present.
|
short |
dataSize
the size of the data area The maximum size is implementation-dependent.
|
TPM_ALG_ID |
nameAlg
hash algorithm used to compute the name of the Index and used for the authPolicy.
|
TPM_HANDLE |
nvIndex
the handle of the data area
|
| Constructor and Description |
|---|
TPMS_NV_PUBLIC()
This structure describes an NV Index.
|
TPMS_NV_PUBLIC(TPM_HANDLE _nvIndex,
TPM_ALG_ID _nameAlg,
TPMA_NV _attributes,
byte[] _authPolicy,
int _dataSize)
This structure describes an NV Index.
|
| Modifier and Type | Method and Description |
|---|---|
static TPMS_NV_PUBLIC |
fromTpm(byte[] x) |
static TPMS_NV_PUBLIC |
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 nvIndex
public TPM_ALG_ID nameAlg
public TPMA_NV attributes
public byte[] authPolicy
public short dataSize
public TPMS_NV_PUBLIC(TPM_HANDLE _nvIndex, TPM_ALG_ID _nameAlg, TPMA_NV _attributes, byte[] _authPolicy, int _dataSize)
_nvIndex - the handle of the data area_nameAlg - hash algorithm used to compute the name of the Index and used for the authPolicy. For an extend index, the hash algorithm used for the extend._attributes - the Index attributes_authPolicy - optional access policy for the Index The policy is computed using the nameAlg NOTE Shall be the Empty Policy if no authorization policy is present._dataSize - the size of the data area The maximum size is implementation-dependent. The minimum maximum size is platform-specific.public TPMS_NV_PUBLIC()
public void toTpm(OutByteBuf buf)
TpmMarshallerbuf - An output byte bufferpublic void initFromTpm(InByteBuf buf)
TpmMarshallerbuf - An input byte bufferpublic byte[] toTpm()
TpmMarshallerpublic static TPMS_NV_PUBLIC fromTpm(byte[] x)
public static TPMS_NV_PUBLIC 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.