Hello all

I am trying to created a utility that generates a TPM Quote (most of the
code was taken from test suites) but I am unable to execute the following
function

Tspi_Key_CreateKey(hIdentKey, hSRK, 0);

I have installed the Trousers and TPM tools from source, I also have TPM
hardware and TPM Emulator.

I ran it against the TPM Emulator in debuged mode and got the Following
output

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpmd/unix/tpmd.c:443: Debug:
received 36 bytes
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:4134:
Debug: tpm_handle_command()
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:3447:
Debug: [TPM_TAG_RQU_COMMAND]
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:3848:
Debug: [TPM_ORD_OSAP]
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_authorization.c:175:
Info: TPM_OSAP()
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_authorization.c:180:
Debug: entityType = 0001, entityValue = 40000000
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_handles.c:57: Debug:
SRK valid? 1
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_handles.c:57: Debug:
SRK valid? 1
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_authorization.c:238:
Debug: handle = 02000000
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:4081:
Info: TPM command succeeded
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpmd/unix/tpmd.c:449: Debug:
sending 54 bytes
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpmd/unix/tpmd.c:422: Debug:
waiting for commands...
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpmd/unix/tpmd.c:443: Debug:
received 146 bytes
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:4134:
Debug: tpm_handle_command()
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:3440:
Debug: [TPM_TAG_RQU_AUTH1_COMMAND]
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:3623:
Debug: [TPM_ORD_CreateWrapKey]
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_storage.c:636: Info:
TPM_CreateWrapKey()
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_handles.c:57: Debug:
SRK valid? 1
*/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_authorization.c:526:
Info: tpm_verify_auth()
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_authorization.c:527:
Debug: handle = 02000000
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_authorization.c:539:
Debug: [TPM_ST_OSAP]
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:4074:
Info: TPM command failed: (0x01) Authentication failed.*
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_eviction.c:51: Info:
TPM_FlushSpecific()
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_eviction.c:52: Debug:
handle = 02000000, resourceType = 00000002
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpmd/unix/tpmd.c:449: Debug:
sending 10 bytes
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpmd/unix/tpmd.c:422: Debug:
waiting for commands...
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpmd/unix/tpmd.c:443: Debug:
received 18 bytes
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:4134:
Debug: tpm_handle_command()
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:3447:
Debug: [TPM_TAG_RQU_COMMAND]
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:3938:
Debug: [TPM_ORD_FlushSpecific]
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_eviction.c:51: Info:
TPM_FlushSpecific()
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_eviction.c:52: Debug:
handle = 02000000, resourceType = 00000002
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpm/tpm_cmd_handler.c:4081:
Info: TPM command succeeded
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpmd/unix/tpmd.c:449: Debug:
sending 10 bytes
/root/Desktop/untitledfolder/tpm_emulator-0.7/tpmd/unix/tpmd.c:422: Debug:
waiting for commands...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

The TPM is Owned, active and enabled.

Any TIPS what I am missing?

Thanx

-- 
Waqar Afridi
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

Reply via email to