From: Kent Y. <shp...@gm...> - 2007-11-27 22:05:24
|
Hi Delbert, I think your code should work as long as you're really using trousers 0.2.9.2 or 0.3.1. You can check that your app is using the right lib with ldd, for example: key@ennui:~/work/trousers/testsuite/tcg/data> ldd ./Tspi_Data_Unseal01 libtspi.so.1 => /usr/local/lib/libtspi.so.1 (0x40033000) key@ennui:~/work/trousers/testsuite/tcg/data> ll /usr/local/lib/libtspi.so.1 lrwxrwxrwx 1 root root 31 2007-11-27 13:17 /usr/local/lib/libtspi.so.1 -> /usr/local/lib/libtspi.so.1.1.2 0.3.1's library's version is 1.1.2, 0.2.9.2's version is 1.0.3. Kent On Nov 27, 2007 3:42 PM, delbert joseph <de...@co...> wrote: > hi, > any ideas to the wrong pcr struct? > can i hard code the right size in the trousers src? > > Thanks > > > On Mon, 2007-11-26 at 16:14 -0500, delbert joseph wrote: > > hi, > > after visual inspection of the tpm chip, it is a 1.2 but troussers see > > it as a 1.1. is there anyway to change it? > > > > thanks > > On Mon, 2007-11-26 at 13:11 -0600, Kent Yoder wrote: > > > It looks like the wrong size PCR info struct is being sent to the TPM. > > > Can you send me the source code to reproduce this? > > > > > > Thanks, > > > Kent > > > > > > On Nov 26, 2007 12:09 PM, delbert joseph <de...@co...> wrote: > > > > hi, > > > > > > > > This is the tcsd log: > > > > ======================================================== > > > > TCSD svrside.c:273 accepted socket 9 > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 1 > > > > TCSD tcsd_wrap.c:366 thread 10002 servicing a tcs_wrap_OpenContext > > > > request > > > > TCSD tcsd_threads.c:252 Sending 0x21 bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 12 > > > > TCSD tcsd_wrap.c:1518 thread 10002 context a073e003: > > > > tcs_wrap_LoadKeyByUUID > > > > TCS tcskcm.c:546 TCSP_LoadKeyByUUID_Internal: Enter: uuid: 0xb7c9da28 > > > > auth? 0x0 *********** > > > > TCS cache.c:720 key_mgr_inc_ref_count: TCSD mem_cached handle: > > > > 0x40000000 > > > > TCS cache.c:686 Key successfully loaded by UUID w/ TCS handle: > > > > 0x40000000 > > > > TCSD tcsd_threads.c:252 Sending 0x97 bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 9 > > > > TCSD tcsd_wrap.c:1404 thread 10002 context a073e003: > > > > tcs_wrap_GetRegisteredKeyBlob > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: Version: 1.1.0.0 > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: keyUsage: 0x11 > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: keyFlags: 0x0 > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: authDatausage: 1 > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: pcrInfosize: 0 > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: encDataSize: 0 > > > > TCSD tcsd_threads.c:252 Sending 0x151 bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 31 > > > > TCSD tcsd_wrap.c:803 thread 10002 context a073e003: tcs_wrap_Extend > > > > TCS tcspbg.c:780 Entering Extend > > > > To TPM: 00 C1 00 00 00 22 00 00 00 14 00 00 00 0C 30 39 > > > > To TPM: 38 37 36 35 34 33 32 31 30 39 38 37 36 35 34 33 > > > > To TPM: 32 31 > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 1E 00 00 00 00 CF 2A F5 A6 A2 A3 > > > > >From TPM: 9B 73 A1 5B 19 0E 03 6E 56 95 D0 9A 3D 3E > > > > TCSD tcsd_threads.c:252 Sending 0x31 bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 32 > > > > TCSD tcsd_wrap.c:839 thread 10002 context a073e003: tcs_wrap_PcrRead > > > > TCS tcspbg.c:832 Entering PCRRead > > > > To TPM: 00 C1 00 00 00 0E 00 00 00 15 00 00 00 0C > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 1E 00 00 00 00 CF 2A F5 A6 A2 A3 > > > > >From TPM: 9B 73 A1 5B 19 0E 03 6E 56 95 D0 9A 3D 3E > > > > TCSD tcsd_threads.c:252 Sending 0x31 bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 31 > > > > TCSD tcsd_wrap.c:803 thread 10002 context a073e003: tcs_wrap_Extend > > > > TCS tcspbg.c:780 Entering Extend > > > > To TPM: 00 C1 00 00 00 22 00 00 00 14 00 00 00 0F 30 39 > > > > To TPM: 38 37 36 35 34 33 32 31 30 39 38 37 36 35 34 33 > > > > To TPM: 32 31 > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 1E 00 00 00 00 09 8A 7E 48 47 C5 > > > > >From TPM: A8 75 03 34 58 80 35 9A DF 27 07 11 5E 45 > > > > TCSD tcsd_threads.c:252 Sending 0x31 bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 32 > > > > TCSD tcsd_wrap.c:839 thread 10002 context a073e003: tcs_wrap_PcrRead > > > > TCS tcspbg.c:832 Entering PCRRead > > > > To TPM: 00 C1 00 00 00 0E 00 00 00 15 00 00 00 0F > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 1E 00 00 00 00 09 8A 7E 48 47 C5 > > > > >From TPM: A8 75 03 34 58 80 35 9A DF 27 07 11 5E 45 > > > > TCSD tcsd_threads.c:252 Sending 0x31 bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 24 > > > > TCSD tcsd_wrap.c:1575 thread 10002 context a073e003: tcs_wrap_OSAP > > > > TCS cache.c:200 ensureKeyIsLoaded: 0x40000000 > > > > TCS cache.c:793 mc_get_slot_by_handle: TCSD mem_cached handle: > > > > 0x40000000 > > > > TCS cache.c:205 keySlot is 40000000 > > > > TCS cache.c:972 mc_update_time_stamp: TCSD mem_cached handle: 0x40000000 > > > > TCS cache.c:230 ensureKeyIsLoaded: Exit > > > > TCS tcspbg.c:220 Entering OSAP > > > > To TPM: 00 C1 00 00 00 24 00 00 00 0B 00 01 40 00 00 00 > > > > To TPM: B2 2A 97 FE F3 AF 34 D3 06 B7 B3 C2 07 3E F5 D8 > > > > To TPM: C2 0A 48 08 > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 36 00 00 00 00 00 00 00 01 A5 A5 > > > > >From TPM: A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 > > > > >From TPM: A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 > > > > >From TPM: A5 A5 A5 A5 A5 A5 > > > > TCS auth_mgr.c:259 added auth for TCS a073e003 TPM 1 > > > > TCSD tcsd_threads.c:252 Sending 0x4B bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 14 > > > > TCSD tcsd_wrap.c:2124 thread 10002 context a073e003: > > > > tcs_wrap_CreateWrapKey > > > > TCS tcskcm.c:672 Entering Create Wrap Key > > > > TCS cache.c:814 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 29 30 > > > > To TPM: 57 F4 48 A3 AC 5A 50 40 3E 22 20 14 25 4B F0 E1 > > > > To TPM: A3 5A BF 8B 15 4E 2C F6 AE 99 9A 32 19 BC 94 E9 > > > > To TPM: 35 BA C7 FB C1 6E 01 01 00 00 00 11 00 00 00 04 > > > > To TPM: 01 00 00 00 01 00 03 00 01 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 00 00 00 01 B2 2A 97 FE F3 AF 34 > > > > To TPM: D3 06 B7 B3 C2 07 3E F5 D8 C2 0A 48 08 00 FB 1B > > > > To TPM: B1 09 91 66 BB 04 5F 61 69 E8 B5 8B E6 EF FE D9 > > > > To TPM: 42 B6 > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C5 00 00 02 62 00 00 00 00 01 01 00 00 00 11 > > > > >From TPM: 00 00 00 04 01 00 00 00 01 00 03 00 01 00 00 00 > > > > >From TPM: 0C 00 00 08 00 00 00 00 02 00 00 00 00 00 00 00 > > > > >From TPM: 00 00 00 01 00 AB 56 7C 0E 60 8C 5C 18 9E 90 2C > > > > >From TPM: 37 32 CF E3 FE 4F A7 B5 0C 78 A1 5D A7 39 EB C0 > > > > >From TPM: 06 87 05 DB 1F E4 AB 2A 9A 68 E3 5B B6 FB 27 69 > > > > >From TPM: 5A 4B E2 90 65 04 B2 78 CF 44 02 7C 16 4C FB F5 > > > > >From TPM: F0 F6 25 7D 31 F1 2E D8 67 93 5A 48 B2 C1 4C 16 > > > > >From TPM: FD 97 E5 86 65 4A 2E 07 4B 14 78 F7 66 83 66 05 > > > > >From TPM: B0 EA EC 1E 16 CF F9 F9 C5 5C BC 7B 42 24 A1 A7 > > > > >From TPM: 1B 55 D7 4B B1 62 7F 90 88 EE FB FB 26 B1 4F 56 > > > > >From TPM: 97 8C D0 12 05 A6 EF 09 C9 08 10 F2 1B 65 9C F2 > > > > >From TPM: 05 7B CC 4E 6A 65 0C 1C E1 B5 3E 86 7D F8 0B 8B > > > > >From TPM: 6F E3 72 2B CB C9 3D F8 61 F4 83 74 B1 38 A6 CE > > > > >From TPM: DE 18 7F 8D C4 8F A1 8E A6 AC 71 A4 89 60 D3 3E > > > > >From TPM: 5F 3D 18 5C 32 6C 96 1D 84 8B 50 C3 5B 68 5C 16 > > > > >From TPM: 2D 9C BB F1 79 60 6E C9 25 AA EC 26 9E 9E D4 D6 > > > > >From TPM: 89 F3 FF 23 AA 75 46 3B 4A EA 1D E5 03 B9 AC 6D > > > > >From TPM: F8 2D 88 FF 84 12 B8 47 CF 3A 32 C9 66 C6 E3 2C > > > > >From TPM: 1F 7D 30 D8 99 00 00 01 00 16 F0 75 31 AD F6 1C > > > > >From TPM: 3C 99 15 22 E9 83 B7 2C 3E 1E 47 40 A7 1D 90 DC > > > > >From TPM: 50 18 90 1D 03 53 DF BA F1 48 56 89 30 8F E9 75 > > > > >From TPM: 5C 62 29 A2 04 54 AA 60 FD FF 4E E8 47 9E EF 5B > > > > >From TPM: FB 38 57 C3 CF 66 65 EE C7 AE BC E8 C7 AF F4 F4 > > > > >From TPM: 31 6E EB C1 30 1A 18 65 F1 48 A5 10 A5 07 B7 C6 > > > > >From TPM: D1 CB B7 23 AA AA FF A5 45 01 64 55 FA 28 83 3E > > > > >From TPM: AB 7A D7 A9 9F D5 37 5C 9D 4C 97 04 DA 6F E9 24 > > > > >From TPM: 7A B5 5D 63 C1 80 BB 6B A6 6C CC 64 E2 72 28 0E > > > > >From TPM: A4 44 6C 8A 32 34 68 9F 57 5B 20 C9 82 94 75 35 > > > > >From TPM: 32 0E 53 46 A6 1A 4E 6D 13 CB 55 4A C2 E0 D9 90 > > > > >From TPM: 39 59 4E 25 7F 61 25 30 05 6E 4E F0 D7 ED 45 1C > > > > >From TPM: AA 50 A6 FC BA 85 75 C7 D0 EF 02 09 7B D7 B6 78 > > > > >From TPM: C8 1A F8 36 81 30 40 40 DB BA 3D 80 D9 D4 57 D8 > > > > >From TPM: 3D 79 F5 32 81 CC AC 07 57 B0 C9 14 AD DE 40 4C > > > > >From TPM: A5 4B 4C 86 74 F3 6F 91 EE 53 0D 8A 4B 09 56 DE > > > > >From TPM: 8C 50 08 A5 BB 05 04 93 64 A5 A5 A5 A5 A5 A5 A5 > > > > >From TPM: A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 00 3F 14 > > > > >From TPM: 85 DD DF 01 9E E4 F0 92 71 A1 BE 06 53 16 EF 16 > > > > >From TPM: 23 E3 > > > > TCS auth_mgr.c:217 released auth for TCS a073e003 TPM 1 > > > > TCS auth_mgr.c:96 no threads need to be signaled. > > > > TCSD tcsd_threads.c:252 Sending 0x27B bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 5 > > > > TCSD tcsd_wrap.c:1315 thread 10002 context a073e003: > > > > tcs_wrap_RegisterKey > > > > TCS tcskcm.c:54 TCS_RegisterKey_Internal: Version: 1.1.0.0 > > > > TCS tcskcm.c:54 TCS_RegisterKey_Internal: keyUsage: 0x11 > > > > TCS tcskcm.c:54 TCS_RegisterKey_Internal: keyFlags: 0x4 > > > > TCS tcskcm.c:54 TCS_RegisterKey_Internal: authDatausage: 1 > > > > TCS tcskcm.c:54 TCS_RegisterKey_Internal: pcrInfosize: 0 > > > > TCS tcskcm.c:54 TCS_RegisterKey_Internal: encDataSize: 256 > > > > TCSD tcsd_threads.c:252 Sending 0x1C bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 9 > > > > TCSD tcsd_wrap.c:1404 thread 10002 context a073e003: > > > > tcs_wrap_GetRegisteredKeyBlob > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: Version: 1.1.0.0 > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: keyUsage: 0x11 > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: keyFlags: 0x4 > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: authDatausage: 1 > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: pcrInfosize: 0 > > > > TCS ps/tcsps.c:171 psfile_get_key_by_uuid: encDataSize: 256 > > > > TCSD tcsd_threads.c:252 Sending 0x251 bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 23 > > > > TCSD tcsd_wrap.c:741 thread 10002 context a073e003: tcs_wrap_OIAP > > > > TCS tcspbg.c:181 Entering TCSI_OIAP > > > > To TPM: 00 C1 00 00 00 0A 00 00 00 0A > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 22 00 00 00 00 00 00 00 01 A5 A5 > > > > >From TPM: A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 > > > > >From TPM: A5 A5 > > > > TCS auth_mgr.c:259 added auth for TCS a073e003 TPM 1 > > > > TCSD tcsd_threads.c:252 Sending 0x36 bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 11 > > > > TCSD tcsd_wrap.c:1450 thread 10002 context a073e003: > > > > tcs_wrap_LoadKeyByBlob > > > > TCS tcskcm.c:351 TCSP_LoadKeyByBlob_Internal: Enter > > > > TCS tcskcm.c:352 TCSP_LoadKeyByBlob_Internal: Version: 1.1.0.0 > > > > TCS tcskcm.c:352 TCSP_LoadKeyByBlob_Internal: keyUsage: 0x11 > > > > TCS tcskcm.c:352 TCSP_LoadKeyByBlob_Internal: keyFlags: 0x4 > > > > TCS tcskcm.c:352 TCSP_LoadKeyByBlob_Internal: authDatausage: 1 > > > > TCS tcskcm.c:352 TCSP_LoadKeyByBlob_Internal: pcrInfosize: 0 > > > > TCS tcskcm.c:352 TCSP_LoadKeyByBlob_Internal: encDataSize: 256 > > > > TCS tcskcm.c:358 Auth Used > > > > TCS tcskcm.c:383 TCSP_LoadKeyByBlob_Internal: calling > > > > mc_get_slot_by_handle > > > > TCS cache.c:793 mc_get_slot_by_handle: TCSD mem_cached handle: > > > > 0x40000000 > > > > TCS tcskcm.c:424 TCSP_LoadKeyByBlob_Internal: calling canILoadThisKey > > > > TCS cxt.c:208 Success: 30000000 is an Internal Context > > > > TCS tcspbg.c:1965 Entering Get Cap > > > > To TPM: 00 C1 00 00 00 2A 00 00 00 65 00 00 00 08 00 00 > > > > To TPM: 00 18 00 00 00 01 00 03 00 01 00 00 00 0C 00 00 > > > > To TPM: 08 00 00 00 00 02 00 00 00 00 > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 0F 00 00 00 00 00 00 00 01 01 > > > > TCS tcs_utils.c:314 canILoadThisKey: YES > > > > TCS tcskcm.c:435 TCSP_LoadKeyByBlob_Internal: Entering LoadKey by blob > > > > TCS tcskcm.c:452 TCSP_LoadKeyByBlob_Internal: Version: 1.1.0.0 > > > > TCS tcskcm.c:452 TCSP_LoadKeyByBlob_Internal: keyUsage: 0x11 > > > > TCS tcskcm.c:452 TCSP_LoadKeyByBlob_Internal: keyFlags: 0x4 > > > > TCS tcskcm.c:452 TCSP_LoadKeyByBlob_Internal: authDatausage: 1 > > > > TCS tcskcm.c:452 TCSP_LoadKeyByBlob_Internal: pcrInfosize: 0 > > > > TCS tcskcm.c:452 TCSP_LoadKeyByBlob_Internal: encDataSize: 256 > > > > TCS tcskcm.c:453 TCSP_LoadKeyByBlob_Internal: Submitting request to the > > > > TPM > > > > To TPM: 00 C2 00 00 02 6A 00 00 00 20 40 00 00 00 01 01 > > > > To TPM: 00 00 00 11 00 00 00 04 01 00 00 00 01 00 03 00 > > > > To TPM: 01 00 00 00 0C 00 00 08 00 00 00 00 02 00 00 00 > > > > To TPM: 00 00 00 00 00 00 00 01 00 AB 56 7C 0E 60 8C 5C > > > > To TPM: 18 9E 90 2C 37 32 CF E3 FE 4F A7 B5 0C 78 A1 5D > > > > To TPM: A7 39 EB C0 06 87 05 DB 1F E4 AB 2A 9A 68 E3 5B > > > > To TPM: B6 FB 27 69 5A 4B E2 90 65 04 B2 78 CF 44 02 7C > > > > To TPM: 16 4C FB F5 F0 F6 25 7D 31 F1 2E D8 67 93 5A 48 > > > > To TPM: B2 C1 4C 16 FD 97 E5 86 65 4A 2E 07 4B 14 78 F7 > > > > To TPM: 66 83 66 05 B0 EA EC 1E 16 CF F9 F9 C5 5C BC 7B > > > > To TPM: 42 24 A1 A7 1B 55 D7 4B B1 62 7F 90 88 EE FB FB > > > > To TPM: 26 B1 4F 56 97 8C D0 12 05 A6 EF 09 C9 08 10 F2 > > > > To TPM: 1B 65 9C F2 05 7B CC 4E 6A 65 0C 1C E1 B5 3E 86 > > > > To TPM: 7D F8 0B 8B 6F E3 72 2B CB C9 3D F8 61 F4 83 74 > > > > To TPM: B1 38 A6 CE DE 18 7F 8D C4 8F A1 8E A6 AC 71 A4 > > > > To TPM: 89 60 D3 3E 5F 3D 18 5C 32 6C 96 1D 84 8B 50 C3 > > > > To TPM: 5B 68 5C 16 2D 9C BB F1 79 60 6E C9 25 AA EC 26 > > > > To TPM: 9E 9E D4 D6 89 F3 FF 23 AA 75 46 3B 4A EA 1D E5 > > > > To TPM: 03 B9 AC 6D F8 2D 88 FF 84 12 B8 47 CF 3A 32 C9 > > > > To TPM: 66 C6 E3 2C 1F 7D 30 D8 99 00 00 01 00 16 F0 75 > > > > To TPM: 31 AD F6 1C 3C 99 15 22 E9 83 B7 2C 3E 1E 47 40 > > > > To TPM: A7 1D 90 DC 50 18 90 1D 03 53 DF BA F1 48 56 89 > > > > To TPM: 30 8F E9 75 5C 62 29 A2 04 54 AA 60 FD FF 4E E8 > > > > To TPM: 47 9E EF 5B FB 38 57 C3 CF 66 65 EE C7 AE BC E8 > > > > To TPM: C7 AF F4 F4 31 6E EB C1 30 1A 18 65 F1 48 A5 10 > > > > To TPM: A5 07 B7 C6 D1 CB B7 23 AA AA FF A5 45 01 64 55 > > > > To TPM: FA 28 83 3E AB 7A D7 A9 9F D5 37 5C 9D 4C 97 04 > > > > To TPM: DA 6F E9 24 7A B5 5D 63 C1 80 BB 6B A6 6C CC 64 > > > > To TPM: E2 72 28 0E A4 44 6C 8A 32 34 68 9F 57 5B 20 C9 > > > > To TPM: 82 94 75 35 32 0E 53 46 A6 1A 4E 6D 13 CB 55 4A > > > > To TPM: C2 E0 D9 90 39 59 4E 25 7F 61 25 30 05 6E 4E F0 > > > > To TPM: D7 ED 45 1C AA 50 A6 FC BA 85 75 C7 D0 EF 02 09 > > > > To TPM: 7B D7 B6 78 C8 1A F8 36 81 30 40 40 DB BA 3D 80 > > > > To TPM: D9 D4 57 D8 3D 79 F5 32 81 CC AC 07 57 B0 C9 14 > > > > To TPM: AD DE 40 4C A5 4B 4C 86 74 F3 6F 91 EE 53 0D 8A > > > > To TPM: 4B 09 56 DE 8C 50 08 A5 BB 05 04 93 64 00 00 00 > > > > To TPM: 01 D2 11 FA 4B 99 F5 47 36 63 92 3F D1 0C 31 28 > > > > To TPM: 99 2C 73 07 05 00 70 9A AA 28 89 03 9D 1D 02 04 > > > > To TPM: 66 54 FA 51 4A 68 44 CE 8F 20 > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C5 00 00 00 37 00 00 00 00 00 00 00 04 A5 A5 > > > > >From TPM: A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 > > > > >From TPM: A5 A5 00 69 C0 D4 7E 00 B0 68 10 58 DF 27 B1 61 > > > > >From TPM: 5D 96 25 58 78 08 FC > > > > TCS tcskcm.c:458 TCSP_LoadKeyByBlob_Internal: calling UnloadBlob_Header > > > > TCS tcskcm.c:480 TCSP_LoadKeyByBlob_Internal: calling > > > > mc_get_handle_by_pub > > > > TCS cache.c:856 mc_get_handle_by_pub: TCSD mem_cached handle: 0x40000000 > > > > TCS cache.c:869 mc_get_handle_by_pub: returning NULL_TPM_HANDLE > > > > TCS tcskcm.c:484 TCSP_LoadKeyByBlob_Internal: No existing key handle for > > > > this key, need to create a new one > > > > TCS tcskcm.c:498 TCSP_LoadKeyByBlob_Internal: calling mc_add_entry, TCS > > > > handle: 0x22330003, TPM handle 0x4 > > > > TCS cache.c:383 mc_add_entry: TCSD mem_cached handle: 0x40000000 > > > > TCS tcskcm.c:502 TCSP_LoadKeyByBlob_Internal: ctx_mark_key_loaded > > > > TCS cache.c:720 key_mgr_inc_ref_count: TCSD mem_cached handle: > > > > 0x22330003 > > > > TCS cache.c:171 TCSD mem_cached handle: 0x22330003 > > > > TCS cache.c:171 TCSD mem_cached handle: 0x40000000 > > > > TCS tcskcm.c:523 TCSP_LoadKeyByBlob_Internal: Key handles for > > > > loadKeyByBlob slot:00000004 tcshandle:22330003 > > > > TCS auth_mgr.c:217 released auth for TCS a073e003 TPM 1 > > > > TCS auth_mgr.c:96 no threads need to be signaled. > > > > TCSD tcsd_threads.c:252 Sending 0x50 bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 46 > > > > TCSD tcsd_wrap.c:876 thread 10002 context a073e003: > > > > tcs_wrap_GetCapability > > > > TCS tcspbg.c:1965 Entering Get Cap > > > > To TPM: 00 C1 00 00 00 16 00 00 00 65 00 00 00 05 00 00 > > > > To TPM: 00 04 00 00 01 01 > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 12 00 00 00 00 00 00 00 04 00 00 > > > > >From TPM: 00 18 > > > > TCSD tcsd_threads.c:252 Sending 0x26 bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 24 > > > > TCSD tcsd_wrap.c:1575 thread 10002 context a073e003: tcs_wrap_OSAP > > > > TCS cache.c:200 ensureKeyIsLoaded: 0x22330003 > > > > TCS cache.c:793 mc_get_slot_by_handle: TCSD mem_cached handle: > > > > 0x22330003 > > > > TCS cache.c:205 keySlot is 00000004 > > > > TCS cxt.c:208 Success: 30000000 is an Internal Context > > > > TCS tcspbg.c:1965 Entering Get Cap > > > > To TPM: 00 C1 00 00 00 12 00 00 00 65 00 00 00 07 00 00 > > > > To TPM: 00 00 > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 24 00 00 00 00 00 00 00 16 00 05 > > > > >From TPM: 00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 03 > > > > >From TPM: 00 00 00 04 > > > > TCS cache.c:1281 isKeyLoaded: loaded TPM key handle: 0x0 > > > > TCS cache.c:1281 isKeyLoaded: loaded TPM key handle: 0x1 > > > > TCS cache.c:1281 isKeyLoaded: loaded TPM key handle: 0x2 > > > > TCS cache.c:1281 isKeyLoaded: loaded TPM key handle: 0x3 > > > > TCS cache.c:1281 isKeyLoaded: loaded TPM key handle: 0x4 > > > > TCS cache.c:972 mc_update_time_stamp: TCSD mem_cached handle: 0x22330003 > > > > TCS cache.c:230 ensureKeyIsLoaded: Exit > > > > TCS tcspbg.c:220 Entering OSAP > > > > To TPM: 00 C1 00 00 00 24 00 00 00 0B 00 01 00 00 00 04 > > > > To TPM: 5A B9 7B 60 4A E7 D5 94 AD 49 4E C3 42 5F A7 B0 > > > > To TPM: 44 5C C9 18 > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 36 00 00 00 00 00 00 00 01 A5 A5 > > > > >From TPM: A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 > > > > >From TPM: A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 A5 > > > > >From TPM: A5 A5 A5 A5 A5 A5 > > > > TCS auth_mgr.c:259 added auth for TCS a073e003 TPM 1 > > > > TCSD tcsd_threads.c:252 Sending 0x4B bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 36 > > > > TCSD tcsd_wrap.c:1781 thread 10002 context a073e003: tcs_wrap_Seal > > > > TCS tcspbg.c:1050 Entering Seal > > > > TCS cache.c:200 ensureKeyIsLoaded: 0x22330003 > > > > TCS cache.c:793 mc_get_slot_by_handle: TCSD mem_cached handle: > > > > 0x22330003 > > > > TCS cache.c:205 keySlot is 00000004 > > > > TCS cxt.c:208 Success: 30000000 is an Internal Context > > > > TCS tcspbg.c:1965 Entering Get Cap > > > > To TPM: 00 C1 00 00 00 12 00 00 00 65 00 00 00 07 00 00 > > > > To TPM: 00 00 > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 24 00 00 00 00 00 00 00 16 00 05 > > > > >From TPM: 00 00 00 00 00 00 00 01 00 00 00 02 00 00 00 03 > > > > >From TPM: 00 00 00 04 > > > > TCS cache.c:1281 isKeyLoaded: loaded TPM key handle: 0x0 > > > > TCS cache.c:1281 isKeyLoaded: loaded TPM key handle: 0x1 > > > > TCS cache.c:1281 isKeyLoaded: loaded TPM key handle: 0x2 > > > > TCS cache.c:1281 isKeyLoaded: loaded TPM key handle: 0x3 > > > > TCS cache.c:1281 isKeyLoaded: loaded TPM key handle: 0x4 > > > > TCS cache.c:972 mc_update_time_stamp: TCSD mem_cached handle: 0x22330003 > > > > TCS cache.c:230 ensureKeyIsLoaded: Exit > > > > To TPM: 00 C2 00 00 00 AE 00 00 00 17 00 00 00 04 9A F9 > > > > To TPM: 73 37 ED E3 E8 C4 87 64 EE CD 0F 3C 23 3F CC B1 > > > > To TPM: AB C5 00 00 00 2D 00 03 00 90 00 7C 4C 51 19 FC > > > > To TPM: E7 CB F7 C0 DD D3 5C 17 E8 1C 62 58 9C 0F B0 7C > > > > To TPM: 4C 51 19 FC E7 CB F7 C0 DD D3 5C 17 E8 1C 62 58 > > > > To TPM: 9C 0F B0 00 00 00 2A 44 65 6C 62 65 72 74 20 69 > > > > To TPM: 73 20 74 68 65 20 6D 61 6E 20 6F 6E 20 74 68 65 > > > > To TPM: 20 6A 6F 62 20 61 6C 6C 20 74 68 65 20 74 69 6D > > > > To TPM: 65 00 00 00 01 5A B9 7B 60 4A E7 D5 94 AD 49 4E > > > > To TPM: C3 42 5F A7 B0 44 5C C9 18 00 F9 4C 88 D6 43 EB > > > > To TPM: 5E D6 C1 89 F8 BD 89 55 78 54 54 A3 FF A1 > > > > TDDL tddl.c:105 Calling write to driver > > > > >From TPM: 00 C4 00 00 00 0A 00 00 00 10 > > > > TCS auth_mgr.c:217 released auth for TCS a073e003 TPM 1 > > > > TCS auth_mgr.c:96 no threads need to be signaled. > > > > TCSD tcsd_threads.c:252 Sending 0x1C bytes back > > > > TCSD tcsd_threads.c:225 Rx'd packet > > > > TCSD tcsd_wrap.c:4060 Dispatching ordinal 2 > > > > TCSD tcsd_wrap.c:628 thread 10002 context a073e003: > > > > tcs_wrap_CloseContext > > > > TCS tcscm.c:40 Closing context A073E003 > > > > TCS cache.c:744 key_mgr_dec_ref_count: decrementing ref cnt for key > > > > 0x22330003 > > > > TCS cache.c:744 key_mgr_dec_ref_count: decrementing ref cnt for key > > > > 0x40000000 > > > > TCS cache.c:764 key_mgr_ref_count: Key 0x22330003 being freed > > > > TCS tcscm.c:52 Context A073E003 closed > > > > TCSD tcsd_threads.c:252 Sending 0x1C bytes back > > > > TCS tcs_utils.c:1307 Socket connection closed. > > > > TCSD tcsd_threads.c:264 Thread exiting. > > > > > > > > > > > > > > > > > > > > > > > > > > > > ========================================================== > > > > This is the applicatin log: > > > > > > > > LOG_DEBUG TSPI ../tcsd_api/clntside.c:102 Sending TSP packet to host > > > > 127.0.0.1. > > > > LOG_DEBUG TSPI ../tcsd_api/clntside.c:118 Connecting to 127.0.0.1 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:291 TCS_OpenContext_RPC_TP: Received > > > > TCS Context: 0xa073e003 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:805 TCSP_LoadKeyByUUID_TP: TCS > > > > Context: 0xa073e003 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:826 TCSP_LoadKeyByUUID_TP: TCS key > > > > handle: 0x40000000 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:711 TCS_GetRegisteredKeyBlob_TP: TCS > > > > Context: 0xa073e003 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:1526 TCSP_Extend_TP: TCS Context: > > > > 0xa073e003 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:1558 TCSP_PcrRead_TP: TCS Context: > > > > 0xa073e003 > > > > Pcr length: 20:09876543210987654321 > > > > pcr composite LOG_DEBUG TSPI ../tcsd_api/tcstp.c:1526 TCSP_Extend_TP: > > > > TCS Context: 0xa073e003 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:1558 TCSP_PcrRead_TP: TCS Context: > > > > 0xa073e003 > > > > pcr composite LOG_DEBUG TSPI obj_policy.c:218 Got a secret: > > > > 86 CA A0 31 C4 3C 62 2C 53 96 A4 61 D2 AE 4A 40 > > > > 22 35 AD 49 > > > > LOG_DEBUG TSPI obj_policy.c:218 Got a secret: > > > > 86 CA A0 31 C4 3C 62 2C 53 96 A4 61 D2 AE 4A 40 > > > > 22 35 AD 49 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:1258 TCSP_OSAP_TP: TCS Context: > > > > 0xa073e003 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:875 TCSP_CreateWrapKey_TP: TCS > > > > Context: 0xa073e003 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:589 TCS_RegisterKey_TP: TCS Context: > > > > 0xa073e003 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:711 TCS_GetRegisteredKeyBlob_TP: TCS > > > > Context: 0xa073e003 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:1224 TCSP_OIAP_TP: TCS Context: > > > > 0xa073e003 > > > > LOG_DEBUG TSPI obj_policy.c:218 Got a secret: > > > > 86 CA A0 31 C4 3C 62 2C 53 96 A4 61 D2 AE 4A 40 > > > > 22 35 AD 49 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:755 TCSP_LoadKeyByBlob_TP: IN: TCS > > > > Context: 0xa073e003 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:788 TCSP_LoadKeyByBlob_TP: OUT: TCS > > > > key handle: 0x22330003, TPM key slot: 0x4 > > > > create object > > > > > > > > Seal data > > > > > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:2366 TCSP_GetCapability_TP: TCS > > > > Context: 0xa073e003 > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR0: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR1: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR2: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR3: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR4: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR5: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR6: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR7: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR8: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR9: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR10: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR11: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:317 PCR12: Selected > > > > CF 2A F5 A6 A2 A3 9B 73 A1 5B 19 0E 03 6E 56 95 > > > > D0 9A 3D 3E > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR13: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR14: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:317 PCR15: Selected > > > > 09 8A 7E 48 47 C5 A8 75 03 34 58 80 35 9A DF 27 > > > > 07 11 5E 45 > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR16: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR17: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR18: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR19: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR20: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR21: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR22: Not Selected > > > > LOG_DEBUG TSPI obj_pcrs.c:321 PCR23: Not Selected > > > > LOG_DEBUG TSPI obj_policy.c:218 Got a secret: > > > > 86 CA A0 31 C4 3C 62 2C 53 96 A4 61 D2 AE 4A 40 > > > > 22 35 AD 49 > > > > LOG_DEBUG TSPI obj_policy.c:218 Got a secret: > > > > 86 CA A0 31 C4 3C 62 2C 53 96 A4 61 D2 AE 4A 40 > > > > 22 35 AD 49 > > > > LOG_DEBUG TSPI obj_policy.c:218 Got a secret: > > > > 86 CA A0 31 C4 3C 62 2C 53 96 A4 61 D2 AE 4A 40 > > > > 22 35 AD 49 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:1258 TCSP_OSAP_TP: TCS Context: > > > > 0xa073e003 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:1740 TCSP_Seal_TP: TCS Context: > > > > 0xa073e003 > > > > Tspi_Data_Seal failed. Error: PCR information uninterpretable 16 > > > > LOG_DEBUG TSPI ../tcsd_api/tcstp.c:357 TCS_CloseContext_TP: TCS Context: > > > > 0xa073e003 > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > On Mon, 2007-11-26 at 11:40 -0600, Kent Yoder wrote: > > > > > Ok, looks like a 1.1 chip then. Can you capture the output from the > > > > > tcsd logs when you run the seal command? > > > > > > > > > > On Nov 26, 2007 11:28 AM, delbert joseph <de...@co...> wrote: > > > > > > hi, > > > > > > i get this as the result, > > > > > > ./tpm_version > > > > > > TPM Version: 01010000 > > > > > > Manufacturer Info: 41544d4c > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > On Mon, 2007-11-26 at 11:23 -0600, Kent Yoder wrote: > > > > > > > Try using the tpm_version command in tpm-tools 1.3 or newer... > > > > > > > > > > > > > > On Nov 26, 2007 11:18 AM, delbert joseph <de...@co...> wrote: > > > > > > > > hi, > > > > > > > > i tried it with trousers 0.3.1 and i get Tspi_Key_LoadKey failed. Error: > > > > > > > > Authentication failed. > > > > > > > > > > > > > > > > do you have a way to reliably check the tpm version? > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > On Mon, 2007-11-26 at 10:58 -0600, Kent Yoder wrote: > > > > > > > > > Are you sure your chip is 1.1? This problem could happen with a 1.2 > > > > > > > > > chip and trousers 0.2.9.1, but shouldn't be happening with any version > > > > > > > > > of trousers on a 1.1 chip. 0.2.9.2 has fixes for this, but if you're > > > > > > > > > really on a 1.2 chip, try running trousers 0.3.1 or the latest cvs > > > > > > > > > head. > > > > > > > > > > > > > > > > > > Kent > > > > > > > > > > > > > > > > > > On Nov 26, 2007 9:38 AM, delbert joseph <de...@co...> wrote: > > > > > > > > > > hi, > > > > > > > > > > i am using TCSD trousers 0.2.9.1 as it is the only build that works with > > > > > > > > > > the atmel chip (1.1). i can seal with the pcr parameter set to 0 in the > > > > > > > > > > seal function. > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 2007-11-23 at 13:38 -0800, Hal Finney wrote: > > > > > > > > > > > Does it work correctly if you don't seal to any PCRs (pass 0 for the > > > > > > > > > > > hPCRs field)? Also, what version of Trousers are you using? > > > > > > > > > > > > > > > > > > > > > > Hal > > > > > > > > > > > > > > > > > > > > > > On Nov 23, 2007 12:02 PM, delbert joseph <de...@co...> wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > > > i have the tpm_atmel tpm 1.1 chip. when i to seal the data with a pcr i > > > > > > > > > > > > get the following error when caclling the Tspi_Data_Seal api, > > > > > > > > > > > > Tspi_Data_Seal failed. Error: PCR information uninterpretable. The error > > > > > > > > > > > > value is 16. > > > > > > > > > > > > > > > > > > > > > > > > Any Ideas? > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > > > > > > This SF.net email is sponsored by: Microsoft > > > > > > > > > > > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > > > > > > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > TrouSerS-users mailing list > > > > > > > > > > > > Tro...@li... > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/trousers-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > > > > > This SF.net email is sponsored by: Microsoft > > > > > > > > > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > > > > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > > > > > _______________________________________________ > > > > > > > > > > TrouSerS-users mailing list > > > > > > > > > > Tro...@li... > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/trousers-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- Kent Yoder IBM LTC Security Dev. |