iaik.tc.tss.impl.java.tcs.pbg
Class TcTpmCmdDelegation
java.lang.Object
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon
iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdDelegation
public class TcTpmCmdDelegation
- extends TcTpmCmdCommon
Method Summary |
static java.lang.Object[] |
TpmDelegateCreateKeyDelegation(TcIStreamDest dest,
long keyHandle,
TcTpmDelegatePublic publicInfo,
TcTpmEncauth delAuth,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmDelegateCreateOwnerDelegation(TcIStreamDest dest,
boolean increment,
TcTpmDelegatePublic publicInfo,
TcTpmEncauth delAuth,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmDelegateLoadOwnerDelegation(TcIStreamDest dest,
long index,
TcTpmDelegateOwnerBlob blob,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmDelegateManage(TcIStreamDest dest,
long familyID,
long opCode,
TcBlobData opData,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmDelegateReadTable(TcIStreamDest dest)
|
static java.lang.Object[] |
TpmDelegateUpdateVerification(TcIStreamDest dest,
TcBlobData inputData,
TcTcsAuth inAuth1)
|
static java.lang.Object[] |
TpmDelegateVerifyDelegation(TcIStreamDest dest,
TcBlobData delegation)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcTpmCmdDelegation
public TcTpmCmdDelegation()
TpmDelegateManage
public static java.lang.Object[] TpmDelegateManage(TcIStreamDest dest,
long familyID,
long opCode,
TcBlobData opData,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.familyID
- The familyID that is to be managedopCode
- Operation to be performed by this command.opData
- Data necessary to implement opCode
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... Returned data (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:
- 184
TpmDelegateCreateKeyDelegation
public static java.lang.Object[] TpmDelegateCreateKeyDelegation(TcIStreamDest dest,
long keyHandle,
TcTpmDelegatePublic publicInfo,
TcTpmEncauth delAuth,
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.publicInfo
- The public information necessary to fill in the blobdelAuth
- The encrypted new AuthData for theblob. The encryption key is the shared secret
from the authorization session protocol.
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... The partially encrypted delegationinformation. (TcTpmDelegateKeyBlob)
- 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:
- 188
TpmDelegateCreateOwnerDelegation
public static java.lang.Object[] TpmDelegateCreateOwnerDelegation(TcIStreamDest dest,
boolean increment,
TcTpmDelegatePublic publicInfo,
TcTpmEncauth delAuth,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.increment
- Flag dictates whether verificationCount will be incrementedpublicInfo
- The public parameters for the blobdelAuth
- The encrypted new AuthData for theblob. The encryption key is the shared secret
from the OSAP protocol.
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... The partially encrypted delegationinformation. (TcTpmDelegateOwnerBlob)
- 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:
- 191
TpmDelegateLoadOwnerDelegation
public static java.lang.Object[] TpmDelegateLoadOwnerDelegation(TcIStreamDest dest,
long index,
TcTpmDelegateOwnerBlob blob,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.index
- The index of the delegate row to be writtenblob
- Delegation information, including encrypted portions as appropriate
- 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:
- 194
TpmDelegateReadTable
public static java.lang.Object[] TpmDelegateReadTable(TcIStreamDest dest)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... Array of TcTpmFamilyTableEntry elements (TcBlobData)
- 2 ... Array of long and TcTpmDelegatePublic elements (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:
- 198
TpmDelegateUpdateVerification
public static java.lang.Object[] TpmDelegateUpdateVerification(TcIStreamDest dest,
TcBlobData inputData,
TcTcsAuth inAuth1)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.inAuth1
- Authorization values for first authorization session.inputData
- TcTpmDelegateKeyBlob or TcTpmDelegateOwnerBlob or long
- Returns:
- The returned Object[] holds the following elements:
- 0 ... TPM return code (Long)
- 1 ... outgoing authorization for session containing new nonceEven (TcTpmAuth)
- 2 ... TcTpmDelegateKeyBlob or TcTpmDelegateOwnerBlob (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:
- 199
TpmDelegateVerifyDelegation
public static java.lang.Object[] TpmDelegateVerifyDelegation(TcIStreamDest dest,
TcBlobData delegation)
throws TcTddlException,
TcTpmException
- Parameters:
dest
- The destination where the byte stream is written to.delegation
- TcTpmDelegateKeyBlob or TcTpmDelegateOwnerBlob
- 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:
- 202