First time posting, thanks in advance for any help. I am using Trousers
for Windows-which I believe is a port of 0.3.4-using a Broadcom 7.13
TPM. My code is currently an amalgamation from privacyCA and trousers
test utilities. 

 

I am making a series of success calls leading up to and including
Tspi_TPM_CollateIdentityRequest; after which I am immediately calling
Tspi_Key_LoadKey and Tspi_TPM_ActivateIdentity-both calls fail (I am
excluding all the PrivacyCA stuff form the identity.c example).
Tspi_Key_LoadKey returns the dreaded TSS_E_FAIL response, and
Tspi_TPM_ActivateIdentity returns a TSS_E_KEY_NOT_LOADED (presumably
because the LoadKey failed). My question is do I really need to be
calling Tspi_Key_LoadKey and Tspi_TPM_ActivateIdentity if all I want is
to create an AIK for the ultimate purpose of obtaining a quote?

 

Next question:

Assuming I am successfully creating an AIK, how do I get a handle to the
AIK? I am trying two methods, both of which fail.

 

Method 1:

Get and save the AIK blob after running CollateIdentity. I have tried
saving blobs returned from Tspi_GetAttribData (using both the
TSS_TSPATTRIB_KEYBLOB_BLOB and TSS_TSPATTRIB_KEYBLOB_PUBLIC_KEY
options), and using the Tspi_Context_LoadKeyByBlob call. This attempt
results in a TSS_E_FAIL. 

 

Method 2:

Get a list of keys and their UUIDs by using the
Tspi_Context_GetRegsteredKeysByUUIID call; followed by a 1)
Tspi_Context_GetKeyByUUID, 2) policy assignment, and 3) a call to
Tspi_Key_LoadKey. I am getting a TSS_E_INTERNAL_ERROR when calling
GetRegsteredKeysByUUIID. Is this even a valid approach?

 

 

Alan 

 

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

Reply via email to