iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdDeprChangeAuth
java.lang.Object
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdDeprChangeAuth
public class TcTpmCmdDeprChangeAuth
- extends TcTpmCmdCommon
Method Summary |
static java.lang.Object[] |
TpmChangeAuthAsymFinish(TcIStreamDest dest,
long parentHandle,
long ephHandle,
int entityType,
TcTpmDigest newAuthLink,
TcBlobData encNewAuth,
TcBlobData encData,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmChangeAuthAsymStart(TcIStreamDest dest,
long idHandle,
TcTpmNonce antiReplay,
TcTpmKeyParms tempKey,
TcTcsAuth inAuth1)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcTpmCmdDeprChangeAuth
public TcTpmCmdDeprChangeAuth()
TpmChangeAuthAsymStart
public static java.lang.Object[] TpmChangeAuthAsymStart(TcIStreamDest dest,
long idHandle,
TcTpmNonce antiReplay,
TcTpmKeyParms tempKey,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.idHandle
- The keyHandle identifier of a loaded identity ID keyantiReplay
- The nonce to be inserted into the certifyInfo structuretempKey
- Structure contains all parameters of ephemeral key.
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... The certifyInfo structure that is to be signed. (TcTpmCertifyInfo)
- 3 ... The signature of the certifyInfo parameter. (TcBlobData)
- 4 ... The keyHandle identifier to be used by ChangeAuthAsymFinish for the
ephemeral key (long)
- 5 ... Structure containing all parameters and public part of ephemeral key.
TcTpmKey.encSize is set to 0. (TcTpmKey)
- 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:
- 298
TpmChangeAuthAsymFinish
public static java.lang.Object[] TpmChangeAuthAsymFinish(TcIStreamDest dest,
long parentHandle,
long ephHandle,
int entityType,
TcTpmDigest newAuthLink,
TcBlobData encNewAuth,
TcBlobData encData,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.parentHandle
- The keyHandle of the parent key for the input dataephHandle
- The keyHandle identifier for the ephemeral keyentityType
- The type of entity to be modifiednewAuthLink
- HMAC calculation that links the old and new AuthData values togetherencNewAuth
- New AuthData encrypted with ephemeral key.encData
- The encrypted entity that is to bemodified.
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... The modified, encrypted entity. (TcBlobData)
- 3 ... A nonce value from the TPM RNG to add entropy to the changeProof value
(TcTpmNonce)
- 4 ... Proof that AuthData has changed. (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:
- 301