> > I'm using TPM emulator with tcsd-0.3.7 for testing and I'm getting
> > some weird behavior. I can easily create a legacy or binding key
> > under SRK but creating of a storage key fails. tpmd debug screen
> > shows this:
> > 
> > ...
> > tpm_storage.c:636: Info: TPM_CreateWrapKey()
> > tpm_handles.c:57: Debug: SRK valid? 1
> > tpm_authorization.c:526: Info: tpm_verify_auth()
> > tpm_authorization.c:527: Debug: handle = 02000000
> > tpm_authorization.c:539: Debug: [TPM_ST_OSAP]
> > tpm_cmd_handler.c:4077: Info: TPM command failed: (0x28) The key
> > properties in TPM_KEY_PARMs are not supported by this TPM.
> > ...
> > 
> > So is it shortcoming of tpm emulator, or is it something in tcsd
> > causing this error? The parameters of the key are the same as in
> > the
> > case with legacy or binding keys only key type is different. Here
> > are exact key flags:
> > 
> >     TSS_FLAG storage_key_flags =
> >             TSS_KEY_TYPE_STORAGE |
> >             TSS_KEY_STRUCT_KEY12 |
> >             TSS_KEY_SIZE_2048 |
> >             TSS_KEY_VOLATILE |
> >             TSS_KEY_AUTHORIZATION;
> > 
> >     TSS_FLAG binding_key_flags =
> >             TSS_KEY_TYPE_BIND |
> >             TSS_KEY_STRUCT_KEY12 |
> >             TSS_KEY_SIZE_2048 |
> >             TSS_KEY_VOLATILE |
> >             TSS_KEY_AUTHORIZATION;
> > 
> > I do not have access to a real TPM at the moment and I can not
> > verify
> > the code with the real thing. But I thought I ask first before
> > building the test machine.
> 
> I checked with real TPM (Infenon) and it fails to create storage key
> too, so it must be something inside of tcsd woks differently for
> storage keys vs. other key types. Have anyone experienced anything
> like this?

I also tried it with latest trousers-v0.3.11.2 and got the same error. Here is 
tcsd debug log:

TCSD TCS rpc/tcstp/rpc_key.c:326 tcs_wrap_CreateWrapKey: thread 140633640883968 
context a0b8bc02
TCSD TCS tcsi_key.c:186 Entering Create Wrap Key
TCSD TCS tcs_key_mem_cache.c:737 mc_get_slot_by_handle_lock: TCSD mem_cached 
handle: 0x40000000
To TPM: 00 C2 00 00 00 92 00 00 00 1F 40 00 00 00 27 D0
To TPM: CA 75 20 8A F2 D3 76 04 94 9D 19 FB 3B 9C 8C FC
To TPM: 6E C1 67 B9 62 B4 93 68 4F 7D E5 A9 02 70 16 98
To TPM: E8 3D AF FB 87 0E 01 01 00 00 00 11 00 00 00 04
To TPM: 01 00 00 00 01 00 03 00 03 00 00 00 0C 00 00 08
To TPM: 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00
To TPM: 00 00 00 00 00 02 00 00 00 73 81 23 13 49 FF A3
To TPM: 7E 26 3F 99 68 90 6C 00 E3 93 8E 4F C0 00 1E A1
To TPM: FD 0C B6 4B 80 42 C9 1E BA B6 A0 71 01 6E 98 A1
To TPM: A1 77
TCSD TDDL tddl.c:171 Calling write to driver
>From TPM: 00 C4 00 00 00 0A 00 00 00 28
LOG_RETERR TPM tcsi_key.c:212: 0x28

Am I the only one who is having this problem?


------------------------------------------------------------------------------
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