From: Bhanu <bha...@gm...> - 2007-06-27 05:11:36
|
Hi, I have downloaded trousers0.2.9.1 version, tpm-emulator from BerliOs and did the initial setup. I have a few doubts.. When I am trying to execute TakeOwnerShip, I noticed that, TCSP_TakeOwnership_Internal function memsets the Public part SRK to '\0' after req_mgr_submit_req at Line number 138. I didn't get what is the advantage of memsetting the Public part SRK to '\0', is it the requirement according to spec?? I tried to execute TestSuite\highlevel\Tspi_Key_WrapKey01.c, I am getting error in obj_rsakey_get_modulus function as Public part of SRK should not be NULL. After commenting the memset part in TCSP_TakeOwnership_Internal, I executed ClearOwnerShip test case, unfortunately it is not clearing the system.datafile [My assumption is system.data will be cleared after execution of ClearOwnerShip01.c].. I cleared it maually and executed TakeOwnerShip command which is success and now it is writing public part of SRK in system.data file [Previously it is '\0'].. Now, Again i try to execute TestSuite\highlevel\Tspi_Key_WrapKey01.c, now it was failed at Trspi_RSA_Encrypt, after some debugging i located the bug is at keyPrivBlobLen in Tspi_Key_WrapKey is coming as 256 bytes [I think it should be 128]. So, it was failed in Trspi_RSA_Encrypt. Can anybody help me out where I am going wrong?? Thanks & Regards, -Bhanu. |