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

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

public class TcTpmCmdIdentity
extends TcTpmCmdCommon


Constructor Summary
TcTpmCmdIdentity()
           
 
Method Summary
static java.lang.Object[] TpmActivateIdentity(TcIStreamDest dest, long idKeyHandle, TcBlobData blob, TcTcsAuth inAuth1, TcTcsAuth inAuth2)
           
static java.lang.Object[] TpmMakeIdentity(TcIStreamDest dest, TcTpmEncauth identityAuth, TcTpmDigest labelPrivCADigest, TcITpmKeyNew idKeyParams, TcTcsAuth inAuth1, TcTcsAuth inAuth2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcTpmCmdIdentity

public TcTpmCmdIdentity()
Method Detail

TpmMakeIdentity

public static java.lang.Object[] TpmMakeIdentity(TcIStreamDest dest,
                                                 TcTpmEncauth identityAuth,
                                                 TcTpmDigest labelPrivCADigest,
                                                 TcITpmKeyNew idKeyParams,
                                                 TcTcsAuth inAuth1,
                                                 TcTcsAuth inAuth2)
                                          throws TcTddlException,
                                                 TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
inAuth1 - Authorization values for first authorization session.
inAuth2 - Authorization values for second authorization session.
identityAuth - Encrypted usage AuthData for the new identity
labelPrivCADigest - The digest of the identity label and privacy CA chosen for the AIK
idKeyParams - Structure containing all parameters of new identity key. pubKey.keyLength & idKeyParams.encData are both 0. This may be an instance of TcTpmKeyNew or TcTpmKey12New.
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... outgoing authorization for 1st session containing new nonceEven (TcTpmAuth)
  • 2 ... outgoing authorization for 2nd session containing new nonceEven (TcTpmAuth)
  • 3 ... The newly created identity key. (TcTpmKey or TcTpmKey12)
  • 4 ... Signature of TcTpmIdentityContents using idKey.private. (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:
147

TpmActivateIdentity

public static java.lang.Object[] TpmActivateIdentity(TcIStreamDest dest,
                                                     long idKeyHandle,
                                                     TcBlobData blob,
                                                     TcTcsAuth inAuth1,
                                                     TcTcsAuth inAuth2)
                                              throws TcTddlException,
                                                     TcTpmException
Parameters:
dest - The destination where the byte stream is written to.
inAuth1 - Authorization values for first authorization session.
inAuth2 - Authorization values for second authorization session.
idKeyHandle - Identity key to be activated
blob - The encrypted ASYM_CA_CONTENTS orTcTpmEkBlob
Returns:
The returned Object[] holds the following elements:
  • 0 ... TPM return code (Long)
  • 1 ... outgoing authorization for 1st session containing new nonceEven (TcTpmAuth)
  • 2 ... outgoing authorization for 2nd session containing new nonceEven (TcTpmAuth)
  • 3 ... The decrypted symmetric key. (TcTpmSymmetricKey)
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:
151