That doesn't show any problem with creating the key.  You can send me 
the entire trace as an attachment if you like.

At some point (maybe your 'destroy context'), the TSS calls 
flushspecific to flush an authorization session that doesn't exist on 
the TPM.

That might not be a fatal error.  It could be a minor TSS bug.

If this was the session that was used to create the key, the TPM 
automatically terminates it.  This is because the session is used to 
encrypt the key authorizations (ADIP).  As I recall, the OSAP session 
shared secret is used to create the ADIP one time pad, so the TPM 
implicitly terminates the session to enforce 'one time'.

On 3/12/2014 1:08 PM, Dmitri Toubelis wrote:
> Ken,
>
> I isolated test case to few simple steps - create context -> get default 
> policy -> set default policy to use well known secret -> create key object -> 
> create key (0x28) -> destroy context and this is the output from IBM emulator:
>
>   TPM_IO_Connect: Accepting connection from port 54123 ...
>    TPM_IO_ReadBytes: Reading 6 bytes
>    TPM_IO_Read: through paramSize length 6
>   00 C1 00 00 00 12
>    TPM_IO_ReadBytes: Reading 12 bytes
>   TPM_IO_Read: length 18
>   00 C1 00 00 00 12 00 00 00 BA 6F 3A 36 7D 00 00
>   00 02
>   TPM_Process_GetCommandParams:
>    TPM_Process_GetCommandParams: tag 00c1 paramSize 18 ordinal 000000ba
>   TPM_Process_Preprocess: Ordinal 000000ba
>    TPM_IO_GetLocality: localityModifier 0
>   TPM_LocalityModifier_CheckLegal: TPM_MODIFIER_INDICATOR 00000000
> TPM_KeyHandleEntries_Trace: 0 handle 00000000 tpm_key (nil)
> TPM_KeyHandleEntries_Trace: 1 handle 00000000 tpm_key (nil)
> TPM_KeyHandleEntries_Trace: 2 handle 00000000 tpm_key (nil)
>   TPM_OrdinalTable_GetProcessFunction: Ordinal 000000ba
> TPM_Process_FlushSpecific: Ordinal Entry
> TPM_Process_FlushSpecific: Handle 6f3a367d
>   TPM_GetInParamDigest:
>    TPM_GetInParamDigest: transportEncrypt 00
>   TPM_CheckState: Check map 00000021
> TPM_Process_FlushSpecific: Flushing authorization session handle 6f3a367d
>   TPM_AuthSessions_TerminateHandle: Handle 6f3a367d
>   TPM_AuthSessions_GetEntry: authHandle 6f3a367d
>    TPM_AuthSessions_GetEntry: session handle 6f3a367d not found
> TPM_Process_FlushSpecific: Ordinal returnCode 00000022 34
>   TPM_Sbuffer_StoreInitialResponse: returnCode 00000022
>   TPM_Sbuffer_StoreFinalResponse: returnCode 00000022
> TPM_KeyHandleEntries_Trace: 0 handle 00000000 tpm_key (nil)
> TPM_KeyHandleEntries_Trace: 1 handle 00000000 tpm_key (nil)
> TPM_KeyHandleEntries_Trace: 2 handle 00000000 tpm_key (nil)
> TPM_State_Trace: disable 0 p_deactive 0 v_deactive 0 owned 1 state 2
>   TPM_IO_Write: length 10
>   00 C4 00 00 00 0A 00 00 00 22
> TPM_IO_Connect: Waiting for connections on port 54123




------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

Reply via email to