iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdTransport
java.lang.Object
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdTransport
public class TcTpmCmdTransport
- extends TcTpmCmdCommon
Method Summary |
static java.lang.Object[] |
TpmEstablishTransport(TcIStreamDest dest,
long encHandle,
TcTpmTransportPublic transPublic,
TcBlobData secret,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmExecuteTransport(TcIStreamDest dest,
TcBlobData wrappedCmd,
long transHandle,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmReleaseTransportSigned(TcIStreamDest dest,
long keyHandle,
TcTpmNonce antiReplay,
long transHandle,
TcTcsAuth inAuth1,
TcTcsAuth inAuth2)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcTpmCmdTransport
public TcTpmCmdTransport()
TpmEstablishTransport
public static java.lang.Object[] TpmEstablishTransport(TcIStreamDest dest,
long encHandle,
TcTpmTransportPublic transPublic,
TcBlobData secret,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.encHandle
- The handle to the key that encrypted the blobtransPublic
- The public information describing the transport sessionsecret
- The encrypted secret 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 handle for the transport session (long)
- 3 ... The locality that called this command (long)
- 4 ... The current tick count (TcTpmCurrentTicks)
- 5 ... The even nonce in use for subsequent execute transport (TcTpmNonce)
- 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:
- 233
TpmExecuteTransport
public static java.lang.Object[] TpmExecuteTransport(TcIStreamDest dest,
TcBlobData wrappedCmd,
long transHandle,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.wrappedCmd
- The wrapped commandtransHandle
- The transport session handle
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... The current ticks when the command was executed (long)
- 3 ... The locality that called this command (long)
- 4 ... The wrapped response (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:
- 237
TpmReleaseTransportSigned
public static java.lang.Object[] TpmReleaseTransportSigned(TcIStreamDest dest,
long keyHandle,
TcTpmNonce antiReplay,
long transHandle,
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.keyHandle
- Handle of a loaded key that will perform the signingantiReplay
- Value provided by caller for anti-replay protectiontransHandle
- The transport session handle
- 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 locality that called this command (long)
- 4 ... The current ticks when the commandexecuted (TcTpmCurrentTicks)
- 5 ... The signature of the digest (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:
- 244