From: Christoph E. <jt...@eu...> - 2008-07-11 11:56:44
|
Christoph Eunicke wrote: > I'm using JTSS-Wrapper 0.3, TrouSerS v0.2.9.1 on a 1.1 chip. > I will try the new release.. I've downloaded the "jTSS Wrapper v0.3.1 (pbuilt)". Following the instructions, I've used the iaik_jtss_tsp.jar from jTSS 0.3 to build this. My project now includes the wrapper-jars in version 0.3.1, and the tcs/tsp.jar from jTss 0.3. Is this correct? Because the following code now results in an exception: ------------------------------------------------------------- TcTssUuid srkUuid = TcUuidFactory.getInstance().getUuidSRK(); System.err.println(srkUuid.toString()); srk = context.loadKeyByUuidFromSystem(srkUuid); ------------------------------------------------------------- UUID: 00000000-0000-0000-0000-000000000001 Exception in thread "main" java.lang.IndexOutOfBoundsException: incorrect array size at iaik.tc.tss.impl.jni.tsp.TspiWrapperJNI.TSS_UUID_rgbNode_set(Native Method) at iaik.tc.tss.impl.jni.tsp.TSS_UUID.setRgbNode(TSS_UUID.java:78) at iaik.tc.tss.impl.jni.tsp.TcSwigTypeConverter.toSwigUuid(TcSwigTypeConverter.java:49) at iaik.tc.tss.impl.jni.tsp.TcContext.loadKeyByUuid(TcContext.java:357) at iaik.tc.tss.impl.jni.tsp.TcContext.loadKeyByUuidFromSystem(TcContext.java:396) at org.eunicke.openid.lib.TssFascade.loadSRK(TssFascade.java:108) ------------------------------------------------------------- |