iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdNvStorage

java.lang.Object
  extended by iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
      extended by iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdNvStorage

public class TcTpmCmdNvStorage
extends TcTpmCmdCommon


Constructor Summary
TcTpmCmdNvStorage()
           
 
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
 

Constructor Detail

TcTpmCmdNvStorage

public TcTpmCmdNvStorage()
Method Detail

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 area
encAuth - 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 set
offset - The offset into the NV Area
data - 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 set
offset - The offset into the chunk
data - 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 set
offset - The offset into the area
dataSz - 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 set
offset - The offset from the data area
dataSz - 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