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

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

public class TcTpmCmdMaintenance
extends TcTpmCmdCommon


Constructor Summary
TcTpmCmdMaintenance()
           
 
Method Summary
static java.lang.Object[] TpmCreateMaintenanceArchive(TcIStreamDest dest, boolean generateRandom, TcTcsAuth inAuth1)
           
static java.lang.Object[] TpmKillMaintenanceFeature(TcIStreamDest dest, TcTcsAuth inAuth1)
           
static java.lang.Object[] TpmLoadMaintenanceArchive(TcIStreamDest dest, TcBlobData archive, TcTcsAuth inAuth1)
           
static java.lang.Object[] TpmLoadManuMaintPub(TcIStreamDest dest, TcTpmNonce antiReplay, TcTpmPubkey pubKey)
           
static java.lang.Object[] TpmReadManuMaintPub(TcIStreamDest dest, TcTpmNonce antiReplay)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcTpmCmdMaintenance

public TcTpmCmdMaintenance()
Method Detail

TpmCreateMaintenanceArchive

public static java.lang.Object[] TpmCreateMaintenanceArchive(TcIStreamDest dest,
                                                             boolean generateRandom,
                                                             TcTcsAuth inAuth1)
                                                      throws TcTddlException,
                                                             TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
inAuth1 - Authorization values for first authorization session.
generateRandom - Use RNG or Owner auth to generate 'random'.
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
  • 2 ... Random data to XOR with result. (TcBlobData)
  • 3 ... Encrypted key archive. (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:
110

TpmLoadMaintenanceArchive

public static java.lang.Object[] TpmLoadMaintenanceArchive(TcIStreamDest dest,
                                                           TcBlobData archive,
                                                           TcTcsAuth inAuth1)
                                                    throws TcTddlException,
                                                           TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
inAuth1 - Authorization values for first authorization session.
archive - Encrypted key archive Vendor specific arguments
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
  • 2 ... Even nonce newly generated by TPM to cover outputs (TcTpmNonce)
  • 3 ... Continue use flag, TRUE if handle is still active (boolean)
  • 4 ... The authorization session digest for the returned parameters. HMAC key: ownerAuth, the original value and not the new auth value (TcTpmAuthdata)
*
Throws:
TcTpmCallException - This exception indicates that a TPM error has occurred. The specific error code id held by the exception.
TcTddlException
TcTpmException
TPM 1.2 Spec, page number:
112

TpmKillMaintenanceFeature

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

TpmLoadManuMaintPub

public static java.lang.Object[] TpmLoadManuMaintPub(TcIStreamDest dest,
                                                     TcTpmNonce antiReplay,
                                                     TcTpmPubkey pubKey)
                                              throws TcTddlException,
                                                     TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
antiReplay - AntiReplay and validation nonce
pubKey - The public key of the manufacturer to be in use for maintenance
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... Digest of pubKey and antiReplay (TcTpmDigest)
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:
116

TpmReadManuMaintPub

public static java.lang.Object[] TpmReadManuMaintPub(TcIStreamDest dest,
                                                     TcTpmNonce antiReplay)
                                              throws TcTddlException,
                                                     TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
antiReplay - AntiReplay and validation nonce
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... Digest of pubKey and antiReplay (TcTpmDigest)
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:
118