Hello,
I have a question regarding the UUID of newly registered keys.
I create a new key:
---
TcIRsaKey signingKey = context.createRsaKeyObject(
TcTssConstants.TSS_KEY_SIZE_2048 | TcTssConstants.TSS_KEY_TYPE_SIGNING
| TcTssConstants.TSS_KEY_MIGRATABLE);
keyUsagePolicy.assignToObject(signingKey);
keyMigrationPolicy.assignToObject(signingKey);
signingKey.createKey(srk, null);
signingKey.loadKey(srk);
---
Now I register that key:
---
TcUuidFactory fac = TcUuidFactory.getInstance();
TcTssUuid uuid = fac.generateRandomUuid();
log.debug("generated Uuid: " + uuid.toStringNoPrefix());
try {
context.registerKey(key, TcTssConstants.TSS_PS_TYPE_SYSTEM,
uuid, TcTssConstants.TSS_PS_TYPE_SYSTEM, fac.getUuidSRK());
key.unloadKey();
} catch (TcTssException e) {...}
---
the log is: generated Uuid: b0d36260-5523-41b1-8d6d-c5d65a5a6ecd
In the next step I load the key and use it for a TPM_Quote:
---
try {
TcIRsaKey key = context.loadKeyByUuidFromSystem(uuid);
} catch (TcTssException e) {...}
log.debug("Uuid: " + key.getAttribUuid());
---
This time the log is: Uuid: UUID: 6062d3b0-2355-b141-8d6d-c5d65a5a6ecd
Can anyone explain me this difference?
Thanks a lot!
--
MfG
Till
**********************************************
Der Benutzer ist eine nicht zu
tolerierende Quelle der Unsicherheit
**********************************************
|