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

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

public class TcTpmCmdMonotonicCnt
extends TcTpmCmdCommon


Constructor Summary
TcTpmCmdMonotonicCnt()
           
 
Method Summary
static java.lang.Object[] TpmCreateCounter(TcIStreamDest dest, TcTpmEncauth encAuth, TcBlobData label, TcTcsAuth inAuth1)
           
static java.lang.Object[] TpmIncrementCounter(TcIStreamDest dest, long countID, TcTcsAuth inAuth1)
           
static java.lang.Object[] TpmReadCounter(TcIStreamDest dest, long countID)
           
static java.lang.Object[] TpmReleaseCounter(TcIStreamDest dest, long countID, TcTcsAuth inAuth1)
           
static java.lang.Object[] TpmReleaseCounterOwner(TcIStreamDest dest, long countID, TcTcsAuth inAuth1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcTpmCmdMonotonicCnt

public TcTpmCmdMonotonicCnt()
Method Detail

TpmCreateCounter

public static java.lang.Object[] TpmCreateCounter(TcIStreamDest dest,
                                                  TcTpmEncauth encAuth,
                                                  TcBlobData label,
                                                  TcTcsAuth inAuth1)
                                           throws TcTddlException,
                                                  TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
inAuth1 - Authorization values for first authorization session.
encAuth - The encrypted auth data for the new counter
label - Label to associate with counter
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
  • 2 ... The handle for the counter (long)
  • 3 ... The starting counter value (TcTpmCounterValue)
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:
247

TpmIncrementCounter

public static java.lang.Object[] TpmIncrementCounter(TcIStreamDest dest,
                                                     long countID,
                                                     TcTcsAuth inAuth1)
                                              throws TcTddlException,
                                                     TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
inAuth1 - Authorization values for first authorization session.
countID - The handle of a valid counter
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
  • 2 ... The counter value (TcTpmCounterValue)
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:
249

TpmReadCounter

public static java.lang.Object[] TpmReadCounter(TcIStreamDest dest,
                                                long countID)
                                         throws TcTddlException,
                                                TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
countID - ID value of the counter
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... The counter value (TcTpmCounterValue)
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:
251

TpmReleaseCounter

public static java.lang.Object[] TpmReleaseCounter(TcIStreamDest dest,
                                                   long countID,
                                                   TcTcsAuth inAuth1)
                                            throws TcTddlException,
                                                   TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
inAuth1 - Authorization values for first authorization session.
countID - ID value of the counter
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:
252

TpmReleaseCounterOwner

public static java.lang.Object[] TpmReleaseCounterOwner(TcIStreamDest dest,
                                                        long countID,
                                                        TcTcsAuth inAuth1)
                                                 throws TcTddlException,
                                                        TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
inAuth1 - Authorization values for first authorization session.
countID - ID value of the counter
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:
254