|
||||||||||
| 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(TcIPcrComposite readPcrComposite,
TcIPcrComposite writePcrComposite)
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 iaik.tc.tss.api.tspi.TcIAttributes |
|---|
getAttribData, getAttribUint32, setAttribData, setAttribUint32 |
| Methods inherited from interface iaik.tc.tss.api.tspi.TcIAuthObject |
|---|
changeAuth, changeAuthAsym, getPolicyObject, getUsagePolicyObject |
| Method Detail |
|---|
void defineSpace(TcIPcrComposite readPcrComposite,
TcIPcrComposite writePcrComposite)
throws TcTssException
readPcrComposite - If this value is null, no PCR values are associated with reading from
the NV space. If not null, the newly created NV storage area will require the PCR
values described in this parameter for successfully reading this storage area.writePcrComposite - If this value is null, no PCR values are associated with writing to
the NV space. If not null, the newly created NV storage area will require the PCR
values describe in this parameter for successfully writing to this 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.
TcTssException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||