iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdIntegrity
java.lang.Object
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdIntegrity
public class TcTpmCmdIntegrity
- extends TcTpmCmdCommon
Method Summary |
static java.lang.Object[] |
TpmExtend(TcIStreamDest dest,
long pcrNum,
TcTpmDigest inDigest)
|
static java.lang.Object[] |
TpmPcrRead(TcIStreamDest dest,
long pcrIndex)
|
static java.lang.Object[] |
TpmPcrReset(TcIStreamDest dest,
TcTpmPcrSelection pcrSelection)
|
static java.lang.Object[] |
TpmQuote(TcIStreamDest dest,
long keyHandle,
TcTpmNonce externalData,
TcTpmPcrSelection targetPCR,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmQuote2(TcIStreamDest dest,
long keyHandle,
TcTpmNonce externalData,
TcTpmPcrSelection targetPCR,
boolean addVersion,
TcTcsAuth inAuth1)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcTpmCmdIntegrity
public TcTpmCmdIntegrity()
TpmExtend
public static java.lang.Object[] TpmExtend(TcIStreamDest dest,
long pcrNum,
TcTpmDigest inDigest)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.pcrNum
- The PCR to be updated.inDigest
- The 160 bit value representing the event to be recorded.
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... The PCR value after execution of thecommand. (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:
- 155
TpmPcrRead
public static java.lang.Object[] TpmPcrRead(TcIStreamDest dest,
long pcrIndex)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.pcrIndex
- Index of the PCR to be read
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... The current contents of the named PCR (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:
- 157
TpmQuote
public static java.lang.Object[] TpmQuote(TcIStreamDest dest,
long keyHandle,
TcTpmNonce externalData,
TcTpmPcrSelection targetPCR,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.keyHandle
- The keyHandle identifier of a loaded key that can sign the PCR values.externalData
- 160 bits of externally supplied data (typically a nonce provided by a
server to prevent replay-attacks)targetPCR
- The indices of the PCRs that are to be reported.
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... A structure containing the same indices as targetPCR, plus the corresponding
current PCR values. (TcTpmPcrComposite)
- 3 ... The signed data blob. (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:
- 158
TpmPcrReset
public static java.lang.Object[] TpmPcrReset(TcIStreamDest dest,
TcTpmPcrSelection pcrSelection)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.pcrSelection
- The PCR's to reset
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 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:
- 160
TpmQuote2
public static java.lang.Object[] TpmQuote2(TcIStreamDest dest,
long keyHandle,
TcTpmNonce externalData,
TcTpmPcrSelection targetPCR,
boolean addVersion,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.keyHandle
- The keyHandle identifier of a loaded key that can sign the PCR values.externalData
- 160 bits of externally supplied data (typically a nonce provided by a
server to prevent replay-attacks)targetPCR
- The indices of the PCRs that are to be reported.addVersion
- When TRUE add TcTpmCapVersionInfoto the output
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... The value created and signed for the quote (TcTpmPcrInfoShort)
- 3 ... The version info (TcTpmCapVersionInfo)
- 4 ... The signed data blob. (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:
- 162