[Tpm4java-users] help needed on encryption
Brought to you by:
tews
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. |