From: Shohei K. <sunrisel0c_0l.sunsetl-c_-lzzz@i.softbank.jp> - 2012-09-10 08:58:30
|
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 |