Hello to you all,
my question is about the function Tspi_PcrExtend();
I'm tryin' to extend a hash value to a pcr, but I get an UNKNOWN ERROR. I was
searching in the web for a code doing this, but with no success. So now I'm
asking you and I hope you can help me.
Here is my code without catching errors and the hash origin (the hash with the
size of 20 Bytes is correct):
TSS_HCONTEXT hContext_PCR;
TSS_RESULT result;
unsigned char* hash;
UINT32 hashlen; //=20
UINT32 PCRindex = 10;
TSS_HTPM hTPM = 0;
UINT32 PCRsize;
BYTE *PCRvalue;
result = Tspi_Context_Create(&hContext_PCR);
result = Tspi_Context_Connect(hContext_PCR,NULL);
result = Tspi_Context_GetTpmObject(hContext_PCR, &hTPM);
result = Tspi_TPM_PcrExtend(hTPM, PCRindex, hashlen, hash, NULL,
&PCRsize, &PCRvalue); //this function returns: -2144861184 Unknown error
result = Tspi_Context_FreeMemory(hContext_PCR, PCRvalue);
//this function returns: 12602 (Unknown)
Is this anything I have to do for extending a hash to a pcr?
Thank you for your help.
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users