iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdEkHandling
java.lang.Object
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdEkHandling
public class TcTpmCmdEkHandling
- extends TcTpmCmdCommon
Method Summary |
static java.lang.Object[] |
TpmCreateEndorsementKeyPair(TcIStreamDest dest,
TcTpmNonce antiReplay,
TcTpmKeyParms keyInfo)
|
static java.lang.Object[] |
TpmCreateRevocableEK(TcIStreamDest dest,
TcTpmNonce antiReplay,
TcTpmKeyParms keyInfo,
boolean generateReset,
TcTpmNonce inputEKreset)
|
static java.lang.Object[] |
TpmOwnerReadInternalPub(TcIStreamDest dest,
long keyHandle,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmReadPubek(TcIStreamDest dest,
TcTpmNonce antiReplay)
Return the endorsement key public portion. |
static java.lang.Object[] |
TpmRevokeTrust(TcIStreamDest dest,
TcTpmNonce EKReset)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcTpmCmdEkHandling
public TcTpmCmdEkHandling()
TpmCreateEndorsementKeyPair
public static java.lang.Object[] TpmCreateEndorsementKeyPair(TcIStreamDest dest,
TcTpmNonce antiReplay,
TcTpmKeyParms keyInfo)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.antiReplay
- Arbitrary datakeyInfo
- Information about key to be created, this includes all algorithm parameters
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... The public endorsement key (TcTpmPubkey)
- 2 ... Hash of pubEndorsementKey and antiReplay (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:
- 139
TpmCreateRevocableEK
public static java.lang.Object[] TpmCreateRevocableEK(TcIStreamDest dest,
TcTpmNonce antiReplay,
TcTpmKeyParms keyInfo,
boolean generateReset,
TcTpmNonce inputEKreset)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.antiReplay
- Arbitrary datakeyInfo
- Information about key to be created, this includes all algorithm parametersgenerateReset
- If TRUE use TPM RNG to generate EKreset. If FALSE use the passed value
inputEKresetinputEKreset
- The authorization value to be usedwith TPM_RevokeTrust if
generateReset==FALSE, else the parameter is present but ignored
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... The public endorsement key (TcTpmPubkey)
- 2 ... Hash of pubEndorsementKey and antiReplay (TcTpmDigest)
- 3 ... The AuthData value to use TPM_RevokeTrust (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:
- 141
TpmRevokeTrust
public static java.lang.Object[] TpmRevokeTrust(TcIStreamDest dest,
TcTpmNonce EKReset)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.EKReset
- The value that will be matched toEK 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:
- 143
TpmReadPubek
public static java.lang.Object[] TpmReadPubek(TcIStreamDest dest,
TcTpmNonce antiReplay)
throws TcTddlException,
TcTpmException
- Return the endorsement key public portion. This value should have controls placed upon access,
as it is a privacy sensitive value. The readPubek flag is set to FALSE by TPM_TakeOwnership and
set to TRUE by TPM_OwnerClear, thus mirroring if a TPM Owner is present.
- Parameters:
dest
- The destination where the byte stream is written to.antiReplay
- Arbitrary data
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... The public endorsement key (TcTpmPubkey)
- 2 ... Hash of pubEndorsementKey and antiReplay (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:
- 144
TpmOwnerReadInternalPub
public static java.lang.Object[] TpmOwnerReadInternalPub(TcIStreamDest dest,
long keyHandle,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.keyHandle
- Handle for either PUBEK or SRK
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... The public portion of the requested key (TcTpmPubkey)
- 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:
- 145