Marius,

I was looking through the TrouSerS-users mails and see that yours were not answered. Were you able to fix the issue?

If not, I added some comments inline below that maybe will help you.


Em 28-08-2013 08:17, Marius Hansen escreveu:
Hi fellow TPM developers,

I currently work on a project implementing some functionality of the TPM on a windows 7 plattform. Unfortunatly I did not come that far, and was stoped by a fatal considering further progress.

What I have:
Windows 7
Trousers for Windows (provided by TORSEC)
TPM 1.2 with taken ownership

What I try to do:
Loading the basic handles as discribed in a variety of documentations and papers.

[...]
TSS_UUID SRK_UUID = TSS_UUID_SRK;
[...]
// Get the SRK handle
    result = Tspi_Context_LoadKeyByUUID(hContext,
        TSS_PS_TYPE_SYSTEM,
        SRK_UUID,
        &hSRK);
    DBG("Got the SRK handle", result);
[...]

The problem:
As discribed in the title I encounter the following error:
Error 0x2020 "Key not found in persistent storage"


Well, since a new SRK is created each time a user take ownership of a TPM, did you follow the take ownership procedure?

Because this is the SRK handle, I unfortunatly fail to build anything related to it ... which is pretty much everything :D
Can somebody help me plz :)

A subquestion of mine would be the following:
What exactly does SRK_UUID = TSS_UUID_SRK do? As I did not claim the ownership with the

It's just to set the variable local SRK_UUID with the uuid data of the SRK.

provided TSS, but instead with the Windows 7 API I assume the problem could be related to that. Additionally I did not found what is the diference between TSS_PS_TYPE_SYSTEM and TSS_PS_TYPE_USER.


This provides information on where the key to be loaded is: TSS_PS_TYPE_SYSTEM points to the TCS persistent storage area, while the TSS_PS_TYPE_USER points to the TSP one. The former, in TrouSerS case means that the key is probably stored in the /var/lib/tpm/system.data (the default file).

I thank you for all help provided,

Sincerely
Marius


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk


_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

Reply via email to