|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TcIRsaKey
The key class defined by the TSS service provider represents an entry into the TCG key handling functionality. Each instance of the key class represents a specific key node, that is part of the TSS key path (hierarchy). A key object, which needs authentication, can be assigned to a policy object that controls the secret management.
Method Summary | |
---|---|
TcTssValidation |
certifyKey(TcIRsaKey certifyingKey,
TcTssValidation validation)
This method signs a public key inside the TPM using TcTssConstants.TSS_SS_RSASSAPKCS1V15_SHA1 ). |
void |
CMKConvertMigration(TcIRsaKey parentKey,
TcIMigData migrationData,
TcBlobData random)
This method completes the migration of a certified migration process. |
TcBlobData |
CMKCreateBlob(TcIRsaKey parentKey,
TcIMigData migrationData)
This method implements the first step in the process of moving a certified-migrateable-key to a new parent platform. |
void |
convertMigrationBlob(TcIRsaKey parent,
TcBlobData random,
TcBlobData migrationBlob)
This method takes the migration blob built by Tspi_Key_CreateMigrationBlob using the migration scheme TSS_MS_MIGRATE and creates a normal wrapped key. |
void |
createKey(TcIRsaKey wrappingKey,
TcIPcrComposite pcrComposite)
This method creates a key pair within the TPM and wraps it with the key addressed by wrappingKey. If the internal key structure is a 1.1 TPM key, the provided PcrComposite must be a TcTssConstants.TSS_PCRS_STRUCT_INFO . |
TcBlobData[] |
createMigrationBlob(TcIRsaKey parent,
TcTpmMigrationkeyAuth migTicket)
This method creates a migration blob of the key. |
TcTssVersion |
getAttribKeyInfoVersion()
This method returns the version of the key. |
TcTssUuid |
getAttribUuid()
This method returns the UUID of the key. |
TcIPolicy |
getMigrationPolicyObject()
This method returns a policy object representing the migration policy currently assigned to the object. |
TcBlobData |
getPubKey()
This method returns the public key of the key object. |
void |
loadKey(TcIRsaKey unwrappingKey)
This method loads the key blob into the TPM. |
void |
migrateKey(TcIRsaKey publicKey,
TcIRsaKey migData)
This method decrypts with assistance of the TPM the input package (e.g. |
void |
setAttribUuid(TcTssUuid uuid)
This method sets the UUID of the key. |
void |
unloadKey()
This method unloads the key from the TPM. |
void |
wrapKey(TcIRsaKey wrappingKey,
TcIPcrComposite pcrComposite)
This method wraps a key (created externally) with the key addressed by wrappingKey. |
Methods inherited from interface TcIAttributes |
---|
getAttribData, getAttribUint32, setAttribData, setAttribUint32 |
Methods inherited from interface TcIAuthObject |
---|
changeAuth, changeAuthAsym, getPolicyObject, getUsagePolicyObject |
Method Detail |
---|
void createKey(TcIRsaKey wrappingKey, TcIPcrComposite pcrComposite) throws TcTssException
TcTssConstants.TSS_PCRS_STRUCT_INFO
. If the key is a 1.2 TPM key, the PcrComposite
must be a TcTssConstants.TSS_PCRS_STRUCT_INFO_LONG
. If a wrong combination is used, a
TcTssException
with error code TcTssErrors.TSS_E_INVALID_OBJ_ACCESS
is thrown.TcIAttributes.setAttribData(long, long, TcBlobData)
and
TcIAttributes.setAttribUint32(long, long, long)
.
wrappingKey
- The key used to wrap the newly created key.pcrComposite
- If this parameter is not omitted (i.e. set to null), the newly created key
will be bound to the PCR values described within this object.
TcTssException
void loadKey(TcIRsaKey unwrappingKey) throws TcTssException
unwrappingKey
- The key which should be used for unwrapping.
TcTssException
void unloadKey() throws TcTssException
TcTssException
TcTssUuid getAttribUuid() throws TcTssException
TcTssException
void setAttribUuid(TcTssUuid uuid) throws TcTssException
TcTssException
TcTssVersion getAttribKeyInfoVersion() throws TcTssException
TcTssException
TcBlobData getPubKey() throws TcTssException
TcTpmPubkey
.
TcTssException
TcTssValidation certifyKey(TcIRsaKey certifyingKey, TcTssValidation validation) throws TcTssException
TcTssConstants.TSS_SS_RSASSAPKCS1V15_SHA1
).
certifyingKey
- Certifying key used to sign the key.validation
- Structure of the type TcTssValidation
. After successful completion
of the call the validationData field of this structure contains the signature data of
the command. The data field of the structure contains an instance of
TcTpmCertifyInfo
or TcTpmCertifyInfo2
.
TcTssException
void wrapKey(TcIRsaKey wrappingKey, TcIPcrComposite pcrComposite) throws TcTssException
wrappingKey
- kKey used for wrapping.pcrComposite
- object of the type PcrComposite. If the value of the handle doesn't equal
to NULL, the key addressed by hKey will be bound to the PCR values described with this
object.
TcTssException
TcBlobData[] createMigrationBlob(TcIRsaKey parent, TcTpmMigrationkeyAuth migTicket) throws TcTssException
parent
- Parent key related to the key.migTicket
- Migration ticket (migration public key and its authorization digest). This
data previously has been returned by the method TPM.authorizeMigrationTicket()
TcTssException
void convertMigrationBlob(TcIRsaKey parent, TcBlobData random, TcBlobData migrationBlob) throws TcTssException
parent
- Parent key related to the key.random
- Random data as returned together with the migration blob by the method
CreateMigrationBlob.migrationBlob
- Migration blob data as returned by a previously called method
CreateMigrationBlob.
TcTssException
void migrateKey(TcIRsaKey publicKey, TcIRsaKey migData) throws TcTssException
publicKey
- Public key to which the blob is to be migratedmigData
- Migration data key object to transfer the input and output data blob during the
migration process. The input data blob is from the previous call of the function
Tspi_CreateMigrationBlob() or Tspi_CMK_CreateBlob().
TcTssException
TcBlobData CMKCreateBlob(TcIRsaKey parentKey, TcIMigData migrationData) throws TcTssException
parentKey
- The parent key related to this key object.migrationData
- Migration data key object to transfer the input and output data blob during the
migration process.
TcTssException
void CMKConvertMigration(TcIRsaKey parentKey, TcIMigData migrationData, TcBlobData random) throws TcTssException
parentKey
- The parent key related to this key object.migrationData
- Migration data key object to transfer the input and output data blob during the
migration process.random
- The random data as returned together with the migration blob by the method
Tspi_CMKCreateBlob().
TcTssException
TcIPolicy getMigrationPolicyObject() throws TcTssException
TcTssException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |