[Tpm4java-users] Infineon TPM 1.2: demo code won't work
Brought to you by:
tews
From: Markus <ax...@go...> - 2006-12-11 16:32:29
|
Hi, I recompiled my javaddl.dll to match the function names of the Infineon device driver library (see Thread: tpm4java: count not init dll code: -2) and did some testing. Here are the results: 1) Sha1Sum example by Erik: 0000000000000000000000000000000000000000 c:\test.txt Test failed, no Exception thrown. 2) Dice example by Erik: Exception in thread "main" java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0 at de.datenzone.tpm4java.TpmRandom.next(TpmRandom.java:50) at java.util.Random.nextFloat(Random.java:336) at de.datenzone.tpm4java.examples.Dice.main(Dice.java:29) Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at de.datenzone.tpm4java.TpmRandom.next(TpmRandom.java:45) ... 2 more BTW I'm using JDK 1.5.0_10. Please help! |