Hello Shohei,
I am very sorry, but Transport Sessions are not supported in jTSS.
If you really need them you would have to implement them yourself.
I believe TrouSerS for C supports this feature.
I hope this helps a little bit,
Ronald
Am 10.09.2012 10:44, schrieb Shohei Kakei:
> Hello,
>
> I am a student at Gifu University, Japan.
> I am having trouble with establishing the transport session
> with a TPM.
> I don't know how to use "TPM_EstablishTransport" command.
> Any insight or help would be greatly appreciated.
>
> a program I wrote:
> TcTddl dest = TcTddl.getInstance();
> long encHandle = 1073741827L;
> TcTpmTransportPublic transPublic = new TcTpmTransportPublic();
> transPublic.setTag(TcTpmConstants.TPM_TAG_TRANSPORT_PUBLIC);
> // TPM_TAG_TRANSPORT_PUBLIC
> transPublic.setTransAttributes(TcTpmConstants.TPM_TRANSPORT_LOG);
> // TPM_TRANSPORT_ATTRIBUTES
> transPublic.setAlgId(TcTpmConstants.TPM_ALG_RSA); //
> TPM_ALGORITHM_ID
> transPublic.setEncScheme(TcTpmConstants.TPM_ES_NONE); //
> TPM_ENC_SCHEME
> TcBlobData secret = TcBlobData.newString("Hello.");
> TcTcsAuth inAuth1 = TcTspInternal.TspOIAP_Internal(context_);
> Object[] obj = TcTpmCmdTransport.TpmEstablishTransport(dest,
> encHandle, transPublic, secret, inAuth1);
>
> console:
> TSS Error:
> error layer: 0x00 (TPM)
> error code (without layer): 0x19
> error code (full): 0x19
> error message: The paramSize argument to the command has the
> incorrect value
>
> at
> iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdCommon.handleRetCode(TcTpmCmdCommon.java:73)
> at
> iaik.tc.tss.impl.java.tcs.pbg.TcTpmCmdTransport.TpmEstablishTransport(TcTpmCmdTransport.java:81)
> at kakei.jtss.test.TransportSession.Main.main(Main.java:50)
>
>
> Thanks,
> Shohei
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Trustedjava-support mailing list
> Tru...@li...
> https://lists.sourceforge.net/lists/listinfo/trustedjava-support
|