From: Ronald T. <ron...@ia...> - 2008-07-16 12:12:08
|
Hi Christoph, I am sorry for the late answer - and I still did not have the time to look into this. :-( As a quick work-around try to instantiate your SRK key object this way. srk_ = context_.createRsaKeyObject(TcTssConstants.TSS_KEY_TSP_SRK); Also make sure that the SRK is actually stored in the persistent storage of the TrouSerS you use. This is typically performed upon taking ownership. Ronald > 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) -- Dipl.-Ing. Ronald Tögl phone +43 316/873-5502 Trusted Computing Labs fax +43 316/873-5520 IAIK ron...@ia... Graz University of Technology http://www.iaik.tugraz.at |