Hi Jonas, On 08-09-2011 03:53, Jonas wrote: > 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
hashlen uninitialized, and... > 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, .. wasn't assigned so far, and should be 20 given current PCRs hold sha1 hashes. Thanks, Rajiv Andrade Security Development IBM Linux Technology Center ------------------------------------------------------------------------------ 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
