iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdAudit
java.lang.Object
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdAudit
public class TcTpmCmdAudit
- extends TcTpmCmdCommon
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcTpmCmdAudit
public TcTpmCmdAudit()
TpmGetAuditDigest
public static java.lang.Object[] TpmGetAuditDigest(TcIStreamDest dest,
long startOrdinal)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.startOrdinal
- The starting ordinal for the list of audited ordinals
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... The current value of the audit monotonic counter (TcTpmCounterValue)
- 2 ... Log of all audited events (TcTpmDigest)
- 3 ... TRUE if the output does not contain a full list of audited ordinals
(boolean)
- 4 ... List of ordinals that are audited. (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:
- 43
TpmGetAuditDigestSigned
public static java.lang.Object[] TpmGetAuditDigestSigned(TcIStreamDest dest,
long keyHandle,
boolean closeAudit,
TcTpmNonce antiReplay,
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 handle of a loaded key that can perform digital signatures.closeAudit
- Indication if audit session should be closedantiReplay
- A nonce to prevent replay attacks
- 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 of the audit monotoniccounter (TcTpmCounterValue)
- 3 ... Log of all audited events (TcTpmDigest)
- 4 ... Digest of all audited ordinals (TcTpmDigest)
- 5 ... The signature of the area (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:
- 45
TpmSetOrdinalAuditStatus
public static java.lang.Object[] TpmSetOrdinalAuditStatus(TcIStreamDest dest,
long ordinalToAudit,
boolean auditState,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.ordinalToAudit
- The ordinal whose audit flag is tobe setauditState
- Value for audit flag
- 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:
- 46