Hello. I am a little confused about using the tpm. I need to do a project to 
encrypt a file, but I am having some trouble. I am working with the TSS stack.

Can someone point me into a direction? So the tpm holds the keys, but we can 
not export them like using openssl. They are kept secure into the tpm. But if I 
want to use them to encrypt something, how can I get to them.

I tryed a couple of things, but no succes. Right now I tried creating a key 
with 
Tspi_Context_CreateObject(hContext,TSS_OBJECT_TYPE_RSAKEY,initFlags,&hKey); 
Tspi_Key_CreateKey(hKey,hSRK,0); and now i am stuck.

Should I use this key to do a Tspi_Data_Bind? if yes i have a question. The 
result of this function will be an encrypted blob?


Theoretical I should encrypt a text file using an symmetric key, but can't 
really put my fingers on it. Is it possible to use the rsa public key blob that 
is found in the EK to encrypt a text?
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

Reply via email to