Hi All,

I have recently faced a problem where I have been using the
Tspi_Tpm_ClearOwner to clear out an existing owned TPM before retaking
ownership.  Within the same process I generate a new AIK and also
store the AIK within the persistent system storage, which meant that I
had to use the newly generated SRK as a parent key when storing inside
the persistent store.

I then proceed to terminate the application and start it again.  When
reloading the application I get the error 0x2020 when trying to load
the SRK with a call to Tspi_Context_LoadKeyByUUID.  The error code
indicates TSS_E_PS_KEY_NOTFOUND at the TCS layer.

Now if I clear the TPM using tpm_clear on the command line so that my
application is aware that ownership has not occurred, then it
continues on with same process, taking ownership and generating a new
AIK the same way as explained above (the same code in fact).

Restarting the application from a clean TPM that is not owned does not
give me the same error and I can load and use the SRK as expected.

Anyone got an ideas on why this could be occurring?

This occurs using the TPM emulator and not a real TPM device.

Thanks

------------------------------------------------------------------------------
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to