tpm4java-users Mailing List for tpm4java
Brought to you by:
tews
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(16) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(1) |
Feb
(2) |
Mar
(8) |
Apr
(4) |
May
(2) |
Jun
(4) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
(5) |
Mar
|
Apr
(4) |
May
(4) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
(2) |
May
(4) |
Jun
|
Jul
(5) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Adam 'foo-s. R. <foo...@o2...> - 2010-01-24 11:33:47
|
I tried to adapt code from library test - tpm4java to sign a data, but after many test there's still no result. Implementation of sign() method is here: http://wklej.to/V0lJ How to sign data with key which is not SRK, but comes from SRK? Any ideas? Thanks! :) Adam |
From: Schleiff, M. <mar...@bo...> - 2010-01-14 01:21:44
|
Could Tpm4java be used to hav the TPM chip produce an HMAC hash, where the input key is securely stored in the TPM, and the message to be authenticated is an input argument? Thanks, Marty |
From: Jason M. <le...@gm...> - 2009-08-17 14:01:51
|
Hi there, When using tpm4java on a Dell / Linux layout (Latitude D63), apparently a Broadcom TPM chip in it I get an IOException in the Linux driver with a message "Timer expired" when reading from the FileInputStream. I've run a few more tests, and it seems that the exception is genuinely caused by some sort of timeout while reading from the device file. I worked out my own (slightly different) linux driver based on a FileChannel (treating it as a non-blocking channel), and while this behaves much better, the code is now stuck in an infinite loop trying to read the data from the TPM device (response from the CreateWrapKey command). The code runs fine against the TPM emulator on my dev machine, but this problam has me going loopy. The only thing I can think of right now is that maybe migratable keys are disabled on the TPM chip (or some such), the data ends 48 bytes short of where it's expected to (if thats at all useful). Any thoughts? I need the keys to be migratable, since they need to be shared between several machines. Thanks very much. Regards, //Jason. |
From: Andrés R. L. <des...@ho...> - 2009-07-23 21:46:47
|
As Erik said it can be a file permission problem, check it out. From: Daniel Pina Sent: Thursday, July 23, 2009 11:24 PM To: tpm...@li... Subject: Re: [Tpm4java-users] problem regarding javaddl & java.library.path Yes, I am using tmp emulator. After the first e-mail I checked the dev/tpm/ directory, which is inexistent. Even in case of using the emulator there should be one there right? Probably wrong-configuration, I will try to install it again. -------------------------------------------------------------------------------- ------------------------------------------------------------------------------ -------------------------------------------------------------------------------- _______________________________________________ Tpm4java-users mailing list Tpm...@li... https://lists.sourceforge.net/lists/listinfo/tpm4java-users |
From: Erik T. <er...@de...> - 2009-07-23 21:25:21
|
Hi, /dev/tpm is read and writeable by the user who is running the code? Am Donnerstag, den 23.07.2009, 21:53 +0100 schrieb Daniel Pina: > Hello all, > > I have reached a confusing error while programming with tpm4java. > Using SimplePrivacyCA.creatCA() makes no problem, but as soon as I > code TssHighLevel highLevel = TssFactory.getHighLevel(); I get this > error output: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no javaddl > in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1698) > at java.lang.Runtime.loadLibrary0(Runtime.java:840) > at java.lang.System.loadLibrary(System.java:1047) > at > de.datenzone.tpm4java.TddlJniDeviceDriver.<clinit>(TddlJniDeviceDriver.java:47) > at > de.datenzone.tpm4java.TssFactory.getLowlevel(TssFactory.java:164) > at > de.datenzone.tpm4java.TssFactory.getHighLevel(TssFactory.java:182) > at Utils.TPMOwnership.main(TPMOwnership.java:45) > > > I am using linux, 2.6.28-13-generic Ubuntu with openjdk 1.6. I have > already tried System.load(path) to get the javaddl file but I get: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load > library: /home/daniel/tpm4java-0.9.0-src/dist/lib/javaddl > > > I have tried this at netbeans & eclipse with same results, I am using > the VM option (-Djava.library.path= path) as well. Anyone has an idea? > > Regards, > Daniel > > ------------------------------------------------------------------------------ > _______________________________________________ > Tpm4java-users mailing list > Tpm...@li... > https://lists.sourceforge.net/lists/listinfo/tpm4java-users |
From: Daniel P. <pin...@gm...> - 2009-07-23 21:24:28
|
Yes, I am using tmp emulator. After the first e-mail I checked the dev/tpm/ directory, which is inexistent. Even in case of using the emulator there should be one there right? Probably wrong-configuration, I will try to install it again. |
From: Andrés R. L. <des...@ho...> - 2009-07-23 21:15:52
|
Hello, I remember that when i was programming with TPM4JAVA in linux i was also using tpmemulator, a kernel module for linux that emulates a TPM. Are you using tpmemulator? You can download it from the project page http://developer.berlios.de/projects/tpm-emulator/ Hope it can help you. From: Daniel Pina Sent: Thursday, July 23, 2009 10:53 PM To: tpm...@li... Subject: [Tpm4java-users] problem regarding javaddl & java.library.path Hello all, I have reached a confusing error while programming with tpm4java. Using SimplePrivacyCA.creatCA() makes no problem, but as soon as I code TssHighLevel highLevel = TssFactory.getHighLevel(); I get this error output: Exception in thread "main" java.lang.UnsatisfiedLinkError: no javaddl in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1698) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1047) at de.datenzone.tpm4java.TddlJniDeviceDriver.<clinit>(TddlJniDeviceDriver.java:47) at de.datenzone.tpm4java.TssFactory.getLowlevel(TssFactory.java:164) at de.datenzone.tpm4java.TssFactory.getHighLevel(TssFactory.java:182) at Utils.TPMOwnership.main(TPMOwnership.java:45) I am using linux, 2.6.28-13-generic Ubuntu with openjdk 1.6. I have already tried System.load(path) to get the javaddl file but I get: Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /home/daniel/tpm4java-0.9.0-src/dist/lib/javaddl I have tried this at netbeans & eclipse with same results, I am using the VM option (-Djava.library.path= path) as well. Anyone has an idea? Regards, Daniel -------------------------------------------------------------------------------- ------------------------------------------------------------------------------ -------------------------------------------------------------------------------- _______________________________________________ Tpm4java-users mailing list Tpm...@li... https://lists.sourceforge.net/lists/listinfo/tpm4java-users |
From: Daniel P. <pin...@gm...> - 2009-07-23 20:53:55
|
Hello all, I have reached a confusing error while programming with tpm4java. Using SimplePrivacyCA.creatCA() makes no problem, but as soon as I code TssHighLevel highLevel = TssFactory.getHighLevel(); I get this error output: Exception in thread "main" java.lang.UnsatisfiedLinkError: no javaddl in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1698) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1047) at de.datenzone.tpm4java.TddlJniDeviceDriver.<clinit>(TddlJniDeviceDriver.java:47) at de.datenzone.tpm4java.TssFactory.getLowlevel(TssFactory.java:164) at de.datenzone.tpm4java.TssFactory.getHighLevel(TssFactory.java:182) at Utils.TPMOwnership.main(TPMOwnership.java:45) I am using linux, 2.6.28-13-generic Ubuntu with openjdk 1.6. I have already tried System.load(path) to get the javaddl file but I get: Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /home/daniel/tpm4java-0.9.0-src/dist/lib/javaddl I have tried this at netbeans & eclipse with same results, I am using the VM option (-Djava.library.path= path) as well. Anyone has an idea? Regards, Daniel |
From: JESUS M. M. <je...@ti...> - 2009-05-22 08:47:11
|
No, I hadn't done it yesterday, but I deactivated it now and it works like yesterday... I have commented when TPM_Loadkey method calls to authGetAndVerify just before return the keyHandle. If I do it, all works fine... Do you to know if there are any change to do for use authGetAndVerify method with TPM_Loadkey2?? Thank you very much Cheers Jesús Marcos -----Mensaje original----- De: Frederic Stumpf [mailto:fre...@si...] Enviado el: viernes, 22 de mayo de 2009 9:39 Para: JESUS MARCOS MORELL CC: tpm...@li... Asunto: Re: [Tpm4java-users] Using TPM_Loadkey2 instead TPM_Loadkey Have you deactivated the HMAC verification? TssLowlevel l = TssFactory.getLowlevel(); l.setCheckReply(false); Cheers, Frederic JESUS MARCOS MORELL wrote: > Hi, > > I am using the method "createAndStoreKey" for create and store a new key... when this method calls to "TPM_LoadKey" the response of the TPM is not right, it must be "TPM_LoadKey2" method. Then like I have read in the specifications page, I replace the cmCode for LoadKey by the cmCode for LoadKey2 (I replace 32 by 65). > > And here is the problem, when the "TPM_LoadKey" verifies the reply of the TPM the tpm4java says: > > reply authentication failed > > This exception is logic because I change the cmCode as I said before... If I comment when "TPM_LoadKey" calls for verification the things go right :) but I think this is not the best way to avoid the exceptions... > > Someone knows how to check the response of the TPM when "TPM_LoadKey2" method is using instead "TPM_Loadkey"?? > > > Thank you very much in advance > > Jesus Marcos > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > Tpm4java-users mailing list > Tpm...@li... > https://lists.sourceforge.net/lists/listinfo/tpm4java-users > > -- Frederic Stumpf Department "Embedded Security and Trusted OS" Addr: Fraunhofer-Institute for Secure Information Technology SIT Parkring 4, 85748 Garching (near Munich), Germany WWW: http://www.sit.fraunhofer.de Phone: +49 89 322-9986-123 Fax: +49 89 322-9986-299 My signature is certified by Fraunhofer Certification Authority: http://pki.fraunhofer.de/FhG-CA-Certs/FhG-CA_v2_cert.der |
From: Frederic S. <fre...@si...> - 2009-05-22 07:39:38
|
Have you deactivated the HMAC verification? TssLowlevel l = TssFactory.getLowlevel(); l.setCheckReply(false); Cheers, Frederic JESUS MARCOS MORELL wrote: > Hi, > > I am using the method "createAndStoreKey" for create and store a new key... when this method calls to "TPM_LoadKey" the response of the TPM is not right, it must be "TPM_LoadKey2" method. Then like I have read in the specifications page, I replace the cmCode for LoadKey by the cmCode for LoadKey2 (I replace 32 by 65). > > And here is the problem, when the "TPM_LoadKey" verifies the reply of the TPM the tpm4java says: > > reply authentication failed > > This exception is logic because I change the cmCode as I said before... If I comment when "TPM_LoadKey" calls for verification the things go right :) but I think this is not the best way to avoid the exceptions... > > Someone knows how to check the response of the TPM when "TPM_LoadKey2" method is using instead "TPM_Loadkey"?? > > > Thank you very much in advance > > Jesus Marcos > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > Tpm4java-users mailing list > Tpm...@li... > https://lists.sourceforge.net/lists/listinfo/tpm4java-users > > -- Frederic Stumpf Department "Embedded Security and Trusted OS" Addr: Fraunhofer-Institute for Secure Information Technology SIT Parkring 4, 85748 Garching (near Munich), Germany WWW: http://www.sit.fraunhofer.de Phone: +49 89 322-9986-123 Fax: +49 89 322-9986-299 My signature is certified by Fraunhofer Certification Authority: http://pki.fraunhofer.de/FhG-CA-Certs/FhG-CA_v2_cert.der |
From: JESUS M. M. <je...@ti...> - 2009-05-21 16:00:15
|
Hi, I am using the method "createAndStoreKey" for create and store a new key... when this method calls to "TPM_LoadKey" the response of the TPM is not right, it must be "TPM_LoadKey2" method. Then like I have read in the specifications page, I replace the cmCode for LoadKey by the cmCode for LoadKey2 (I replace 32 by 65). And here is the problem, when the "TPM_LoadKey" verifies the reply of the TPM the tpm4java says: reply authentication failed This exception is logic because I change the cmCode as I said before... If I comment when "TPM_LoadKey" calls for verification the things go right :) but I think this is not the best way to avoid the exceptions... Someone knows how to check the response of the TPM when "TPM_LoadKey2" method is using instead "TPM_Loadkey"?? Thank you very much in advance Jesus Marcos |
From: JESUS M. M. <je...@ti...> - 2009-05-21 14:23:53
|
Hi, I am using the method "createAndStoreKey" for create and store a new key... when this method calls to "TPM_LoadKey" the response of the TPM is not right, it must be "TPM_LoadKey2" method. Then like I have read in the specifications page, I replace the cmCode for LoadKey by the cmCode for LoadKey2 (I replace 32 by 65). And here is the problem, when the "TPM_LoadKey" verifies the reply of the TPM the tpm4java says: reply authentication failed This exception is logic because I change the cmCode as I said before... If I comment when "TPM_LoadKey" calls for verification the things go right :) but I think this is not the best way to avoid the exceptions... Someone knows how to check the response of the TPM when "TPM_LoadKey2" method is using instead "TPM_Loadkey"?? Thank you very much in advance Jesus Marcos |
From: Frederic S. <st...@se...> - 2009-04-30 15:18:48
|
Both PCR values and Nonce are used to compute the signature. I suggest that you look at the tpm4java API specification and in particular at the TPMSignedData class. You also find detailed information on the the detailed structure of the signature in the TCG specification. You can download it on http://www.trustedcomputinggroup.org/resources/tpm_specification_version_12_revision_103_part_1__3 Cheers, Frederic JESUS MARCOS MORELL wrote: > Hi, > > I am trying to use the low level method "TPM_Quote" for implement an example of Remote Attestation. > > Someone knows what data is signed by TPM and is stored in sig's field? PCR value, nonce.... or any combination of them > > I don't know how is working the TPM, when I call this method... > > > Thank you very much in advance > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Tpm4java-users mailing list > Tpm...@li... > https://lists.sourceforge.net/lists/listinfo/tpm4java-users > > -- Frederic Stumpf phone: +49 6151 16 7015 TU Darmstadt -- Department of Computer Science fax: +49 6151 16 3514 Research Group IT-Security eMail: st...@se... |
From: JESUS M. M. <je...@ti...> - 2009-04-30 14:30:37
|
Hi, I am trying to use the low level method "TPM_Quote" for implement an example of Remote Attestation. Someone knows what data is signed by TPM and is stored in sig's field? PCR value, nonce.... or any combination of them I don't know how is working the TPM, when I call this method... Thank you very much in advance |
From: JESUS M. M. <je...@ti...> - 2009-03-30 13:51:57
|
I am trying to use tpm4java in a vaio laptop with an Infineon TPM 1.2 I activate the TPM in the BIOS, and I put the IFXTPM.dll in the system32 folder. And when I am trying to take ownership TPMInterfaceClient tpm = new TPMInterfaceClient(); tpm.takeOwnership("ownpass", "keyrootpass"); there is an error that I cant resolve de.datenzone.tpm4java.TSSException: Checksum does not match: I dont know how to resolve that error... Thank you very much in advance |
From: Yuen M. <yue...@ho...> - 2008-07-25 06:36:14
|
Hi all, does anyone have a fully compiled any running tpm4java? including the tpm4java.jar. Mingwei _________________________________________________________________ Check out Barclays Premier League exclusive video clips here! http://fc.sg.msn.com/index.aspx |
From: Yuen M. <yue...@ho...> - 2008-07-24 11:42:02
|
Hi all, when i give the command ant dist, the compile has no problem but it ends up with a build failed. This is the message shown in the cmd " C:\\apache-ant-1.7.1\bin\build.xml:71:Javadoc failed:java.io.IOException:Cannot run program"javadoc.exe":createProcess error=2, The system cannot find the file specified." I know where i shoul dplace the file but i do not know what fail they wanted me to place in the folder. can any kind souls help me with the problem? thanks in advance for the help Mingwei _________________________________________________________________ Easily publish your photos to your Spaces with Photo Gallery. http://get.live.com/photogallery/overview |
From: raja s. <raj...@gm...> - 2008-05-19 19:54:26
|
Dear tpm4java members, sorry for giving continous messages with my little doubts, but I want help for these because of my experience lack, and whats the problem I am facting now is when I do encryption with the code given in tutorial, I am getting error String filein = "/root/workspace/tpm4java_examples/src/example"; String fileout = "/root/workspace/tpm4java_examples/src/example_encrypted"; int keyhandle = Integer.parseInt("1073741824"); String parentAuth = "sekhar"; //which is the password for SRK String keyAuth = null; and I am getting error like this Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: de.datenzone.tpm4java.TPMException: Bad return code 1 Authentication failed at EncryptFile.main(EncryptFile.java:43) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: de.datenzone.tpm4java.TPMException: Bad return code 1 Authentication failed at de.datenzone.tpm4java.TssHighLevelImpl.encryptFile(TssHighLevelImpl.java:375) at EncryptFile.main(EncryptFile.java:40) Caused by: java.lang.RuntimeException: de.datenzone.tpm4java.TPMException: Bad return code 1 Authentication failed at de.datenzone.tpm4java.TssHighLevelImpl.createKey(TssHighLevelImpl.java:215) at de.datenzone.tpm4java.TssHighLevelImpl.encryptFile(TssHighLevelImpl.java:327) ... 1 more Caused by: de.datenzone.tpm4java.TPMException: Bad return code 1 Authentication failed at de.datenzone.tpm4java.TSSCoreService.SendCommand(TSSCoreService.java:2212) at de.datenzone.tpm4java.TSSCoreService.SendCommand(TSSCoreService.java:2198) at de.datenzone.tpm4java.TSSCoreService.TPM_CreateWrapKey(TSSCoreService.java:634) at de.datenzone.tpm4java.TssHighLevelImpl.createKey(TssHighLevelImpl.java:210) ... 2 more I dont know what to change in code, I am trying to get the password for the SRK, I dont know what to give, if you know anyone please give the answer, I am much needy about it. Thanking you, Best Regards, Rajasekhar Kannamanani. |
From: raja s. <raj...@gm...> - 2008-05-19 14:16:34
|
Dear Members, I solved the previous problem on running tests and now I am getting a new problem which is on tpm ownership. when I login into my system I am giving ownership with a pasword xxxxxx, and when I boot system second time, my tpm is not recognizing previous ownership, so that I can run takeownership program with out error, here I am using tpm emulator instead of tpm, so please check this and give me a positive reply. Thanking you, Best Regards, Rajasekhar Kannamanani. |
From: Erik T. <er...@de...> - 2008-05-18 22:50:03
|
Am Sonntag, den 18.05.2008, 20:33 +0200 schrieb raja sekhar: > Dear Members of tpm4java, > > this is Rajasekhar Kannamanani, I am doing my master thesis on web > browser security in Fraunhofer Institute in Darmstadt, I am trying to > install tpm4jav, it installed correctly on my > desktop : /home/raja/Desktop/tpm4java-0.9.0-src/ > > and I give classpath to tpm4java.jar and now i ran some example > programs in linux, because I am using tpm_emulator-0.5.1 and when I > run the program Sha1Sum its compiling but not running and its giving > error like this... > > rajasekhar@rajasekhar-desktop:~/workspace/tpm4java_examples/src$ java > Sha1Sum > Exception in thread "main" java.lang.UnsatisfiedLinkError: no javaddl > in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) > at java.lang.Runtime.loadLibrary0(Runtime.java:823) > at java.lang.System.loadLibrary(System.java:1030) > at > de.datenzone.tpm4java.TddlJniDeviceDriver.<clinit>(TddlJniDeviceDriver.java:47) > at de.datenzone.tpm4java.TssFactory.getLowlevel(TssFactory.java:164) > at de.datenzone.tpm4java.TssFactory.getHighLevel(TssFactory.java:182) > at Sha1Sum.main(Sha1Sum.java:23) > > so please check it and give me a answer. Hi, is /dev/tpm present and writeable by the user? |
From: raja s. <raj...@gm...> - 2008-05-18 18:32:59
|
Dear Members of tpm4java, this is Rajasekhar Kannamanani, I am doing my master thesis on web browser security in Fraunhofer Institute in Darmstadt, I am trying to install tpm4jav, it installed correctly on my desktop : /home/raja/Desktop/tpm4java-0.9.0-src/ and I give classpath to tpm4java.jar and now i ran some example programs in linux, because I am using tpm_emulator-0.5.1 and when I run the program * Sha1Sum* its compiling but not running and its giving error like this... rajasekhar@rajasekhar-desktop:~/workspace/tpm4java_examples/src$ java Sha1Sum Exception in thread "main" java.lang.UnsatisfiedLinkError: no javaddl in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1030) at de.datenzone.tpm4java.TddlJniDeviceDriver.<clinit>(TddlJniDeviceDriver.java:47) at de.datenzone.tpm4java.TssFactory.getLowlevel(TssFactory.java:164) at de.datenzone.tpm4java.TssFactory.getHighLevel(TssFactory.java:182) at Sha1Sum.main(Sha1Sum.java:23) so please check it and give me a answer. Thanking you, Best Regards, Rajasekhar Kannamanani. |
From: Teena <che...@gm...> - 2008-04-24 01:39:59
|
Hi, I have followed the thread in the mailing list relating to the error TpmRandom.java for the Dice class. http://sourceforge.net/mailarchive/message.php?msg_id=457DB877.5050505%40martin.hermanowski.name I have set ownership of the TPM, and successfully tested the TPM chip. It is enabled in the BIOS. Environment: Windows XP, SP2. However, I still get the following error while running Dice.java ->TPM: (14) 00 C1 00 00 00 0E 00 00 00 46 00 00 00 04 TPM->: (16384) 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(Unknown Source) at de.datenzone.tpm4java.Dice.main(Dice.java:32) Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at de.datenzone.tpm4java.TpmRandom.next(TpmRandom.java:45) ... 2 more Thanks! Teena |
From: Andrés R. L. <des...@ho...> - 2008-04-20 09:58:13
|
Hi Teena, the tpmddl.dll file is used as a wrapper for the tpm device driver dll, the problem is that tpmdll.dll could be wrong. You have to get the source files and recompile the tpmdll.dll file. If you look at the code you will see (tpmdll.c): opentpm = (MyTddli_Open) GetProcAddress(dll, "Tddli_Open"); there is where the tpmdll get the address of the Tddli_Open function from your tpm device driver. The problem is that the name of the function is wrong, in my case it was: opentpm = (MyTddli_Open) GetProcAddress(dll, "TDDL_Open"); Note that there are similar instructions in the code: closetpm = (MyTddli_Close) GetProcAddress(dll, "Tddli_Close"); transmittpm = (MyTddli_TransmitData) GetProcAddress(dll, "Tddli_TransmitData"); You should change them all. The name of the functions in you tmp device driver could be different. I send you the tpmddl.dll an the c code with the modifications. Bye, Andrés. ----- Original Message ----- From: Teena To: tpm...@li... Sent: Sunday, April 20, 2008 2:53 AM Subject: [Tpm4java-users] dll error Hi, I am using TPM4Java API for my project and I got a similar error as found in the mailing list: http://sourceforge.net/mailarchive/forum.php?thread_name=22960f8a0612040744s43fca120l9b47e98bab0f1248%40mail.gmail.com&forum_name=tpm4java-users Exception in thread "main" java.lang.RuntimeException: couldn't init dll code: -2 at de.datenzone.tpm4java.TddlJniDeviceDriver.<init>(TddlJniDeviceDriver.java:74) at de.datenzone.tpm4java.TssFactory.getLowlevel(TssFactory.java:164) at de.datenzone.tpm4java.TssFactory.getHighLevel(TssFactory.java:182) at de.datenzone.tpm4java.Sha1Sum.main(Sha1Sum.java:26) I have STMicroelectronics TPM chip and I have the required dll file in system32 folder(tpmddl.dll). Any pointers what is happening? Any help/suggestions will be highly appreciated. Thanks in advance!! -- Regards, Teena ------------------------------------------------------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ------------------------------------------------------------------------------ _______________________________________________ Tpm4java-users mailing list Tpm...@li... https://lists.sourceforge.net/lists/listinfo/tpm4java-users |
From: Teena <che...@gm...> - 2008-04-20 00:53:17
|
Hi, I am using TPM4Java API for my project and I got a similar error as found in the mailing list: http://sourceforge.net/mailarchive/forum.php?thread_name=22960f8a0612040744s43fca120l9b47e98bab0f1248%40mail.gmail.com&forum_name=tpm4java-users Exception in thread "main" java.lang.RuntimeException: couldn't init dll code: -2 at de.datenzone.tpm4java.TddlJniDeviceDriver.<init>(TddlJniDeviceDriver.java:74) at de.datenzone.tpm4java.TssFactory.getLowlevel(TssFactory.java:164) at de.datenzone.tpm4java.TssFactory.getHighLevel(TssFactory.java:182) at de.datenzone.tpm4java.Sha1Sum.main(Sha1Sum.java:26) I have STMicroelectronics TPM chip and I have the required dll file in system32 folder(tpmddl.dll). Any pointers what is happening? Any help/suggestions will be highly appreciated. Thanks in advance!! -- Regards, Teena |
From: Neal M. <web...@na...> - 2008-04-16 18:01:09
|
Hello out there, I trying to compile one of the examples to native programm: gcj -g --classpath=/home/nmorrison/tpm/tpm4java-0.9.0-bin/lib/tpm4java.jar --main=Sha1Sum -o Sha1Sum Sha1Sum.class After that I get some errors: /tmp/cchCzfII.o: In function `main': /tmp/cc2zEsVV.i:11: undefined reference to `Sha1Sum::class$' /tmp/ccTCCvDc.o: In function `void de::datenzone::tpm4java::examples::Sha1Sum::main(JArray<java::lang::String*>*)': /home/nmorrison/tpm/tpm4java-0.9.0-src/src_examples/de/datenzone/tpm4java/examples/de/datenzone/tpm4java/examples/Sha1Sum.java:27: undefined reference to `de::datenzone::tpm4java::TssHighLevel* de::datenzone::tpm4java::TssFactory::getHighLevel()' /home/nmorrison/tpm/tpm4java-0.9.0-src/src_examples/de/datenzone/tpm4java/examples/de/datenzone/tpm4java/examples/Sha1Sum.java:35: undefined reference to `de::datenzone::tpm4java::TssHighLevel::class$' collect2: ld returned 1 exit status How can I compile it native? -- Regards Neal |