|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TcINvRam
This class is used to store the attributes of a region of non volatile RAM inside the TPM, for use when defining, releasing, reading or writing such a region. This class establishes the size of the data space, the index, the various authorizations required to either read or write that area. Those authorizations can be based on PCR values or authorization data, but not locality. The various attributes of the class are used to establish what is requested before defineSpace is called (similar to the way a key is created).
Method Summary | |
---|---|
void |
defineSpace(TcTpmNvDataPublic pubData)
This method establishes the space necessary for the NV store. |
TcBlobData |
readValue(long offset,
long dataLength)
This method reads the data from the defined area. |
void |
releaseSpace()
This method releases the space associated with the NV store instance. |
void |
writeValue(long offset,
TcBlobData dataToWrite)
This method writes a given value to a previously defined area. |
Methods inherited from interface TcIAttributes |
---|
getAttribData, getAttribUint32, setAttribData, setAttribUint32 |
Methods inherited from interface TcIAuthObject |
---|
changeAuth, changeAuthAsym, getPolicyObject, getUsagePolicyObject |
Method Detail |
---|
void defineSpace(TcTpmNvDataPublic pubData) throws TcTssException
Be careful when defining indices with set D-bit. Indices which have this bit set might be unerasable on some TPMs. Some TPM_NV_INDEX_* constants have this bit set for compatibility reasons.
pubData
- Complete TcTpmNvDataPublic
object containing access
information for the newly created NV storage area.
TcTssException
void releaseSpace() throws TcTssException
TcTssException
void writeValue(long offset, TcBlobData dataToWrite) throws TcTssException
offset
- The offset within the NV area to begin writing.dataToWrite
- The data to be written.
TcTssException
TcBlobData readValue(long offset, long dataLength) throws TcTssException
offset
- The offset within the NV area to begin reading.dataLength
- The number of bytes to be read. The special value
0xFFFFFFFF
activates Smart Read: the TSS will
determine the size of data automatically and assemble it
internally from its parts.
TcTssException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |