iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdNvStorage
java.lang.Object
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdNvStorage
public class TcTpmCmdNvStorage
- extends TcTpmCmdCommon
Method Summary |
static java.lang.Object[] |
TpmNvDefineSpace(TcIStreamDest dest,
TcTpmNvDataPublic pubInfo,
TcTpmEncauth encAuth,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmNvReadValue(TcIStreamDest dest,
long nvIndex,
long offset,
long dataSz,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmNvReadValueAuth(TcIStreamDest dest,
long nvIndex,
long offset,
long dataSz,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmNvWriteValue(TcIStreamDest dest,
long nvIndex,
long offset,
TcBlobData data,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmNvWriteValueAuth(TcIStreamDest dest,
long nvIndex,
long offset,
TcBlobData data,
TcTcsAuth inAuth1)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcTpmCmdNvStorage
public TcTpmCmdNvStorage()
TpmNvDefineSpace
public static java.lang.Object[] TpmNvDefineSpace(TcIStreamDest dest,
TcTpmNvDataPublic pubInfo,
TcTpmEncauth encAuth,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.pubInfo
- The public parameters of the NV areaencAuth
- The encrypted AuthData, only valid if the attributes require subsequent
authorization
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- Throws:
TcTpmException
- This exception indicates that a TPM error has occurred. The specific
error code id held by the exception.
TcTddlException
- TPM 1.2 Spec, page number:
- 205
TpmNvWriteValue
public static java.lang.Object[] TpmNvWriteValue(TcIStreamDest dest,
long nvIndex,
long offset,
TcBlobData data,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.nvIndex
- The index of the area to setoffset
- The offset into the NV Areadata
- The data to set the area to
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- Throws:
TcTpmException
- This exception indicates that a TPM error has occurred. The specific
error code id held by the exception.
TcTddlException
- TPM 1.2 Spec, page number:
- 209
TpmNvWriteValueAuth
public static java.lang.Object[] TpmNvWriteValueAuth(TcIStreamDest dest,
long nvIndex,
long offset,
TcBlobData data,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.nvIndex
- The index of the area to setoffset
- The offset into the chunkdata
- The data to set the area to
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- Throws:
TcTpmException
- This exception indicates that a TPM error has occurred. The specific
error code id held by the exception.
TcTddlException
- TPM 1.2 Spec, page number:
- 212
TpmNvReadValue
public static java.lang.Object[] TpmNvReadValue(TcIStreamDest dest,
long nvIndex,
long offset,
long dataSz,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.nvIndex
- The index of the area to setoffset
- The offset into the areadataSz
- The size of the data area
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... The data to set the area to (TcBlobData)
- Throws:
TcTpmException
- This exception indicates that a TPM error has occurred. The specific
error code id held by the exception.
TcTddlException
- TPM 1.2 Spec, page number:
- 214
TpmNvReadValueAuth
public static java.lang.Object[] TpmNvReadValueAuth(TcIStreamDest dest,
long nvIndex,
long offset,
long dataSz,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.nvIndex
- The index of the area to setoffset
- The offset from the data areadataSz
- The size of the data area
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... The data (TcBlobData)
- Throws:
TcTpmException
- This exception indicates that a TPM error has occurred. The specific
error code id held by the exception.
TcTddlException
- TPM 1.2 Spec, page number:
- 216