On Thu, 2006-06-29 at 20:11 +1000, Raif S. Naffah wrote: > i test against the Mauve testlet and this is what i get: > > TEST: gnu.javax.crypto.jce.TestOfDHKeyAgreement2 > *** Generating Alice's Diffie-Hellman key-pair > *** Initializing Alice's Diffie-Hellman key-agreement > *** Alice sends Bob her encoded key... > *** Generating Bob's Diffie-Hellman key-pair > *** Initializing Bob's Diffie-Hellman key-agreement > *** Bob sends Alice his encoded key... > *** Alice does phase #1 > *** Bob does phase #1 > pass: line 160: generateSecret(byte[128], 1) MUST throw ShortBufferException [1] > pass: line 165: Shared secrets MUST be equal [1] > *** Bob generates a new shared secret > *** Alice generates a new shared secret > *** Bob sends Alice a DES/ECB encrypted message > pass: line 190: DES/ECB recovered text and cleartext MUST be equal [1] > *** Bob sends Alice a DES/CBC encrypted message > pass: line 209: DES/CBC recovered text and cleartext MUST be equal [1] > TEST PASSED (4 checks) gnu.javax.crypto.jce.TestOfDHKeyAgreement2 > > TEST RESULTS: > 0 of 1 tests failed. 0 total calls to harness.check() failed. > > with: > > * Classpath CVS HEAD, configured --with-jikes > * the latest JamVM, checked out from cvs.jamv.berlios.de. > $ jamvm -version > java version "1.4.2" > JamVM version 1.4.4-pre > Copyright (C) 2003-2006 Robert Lougher <rob@xxxxxxxxxxxxxx> > * Harness invoked with -showpasses -verbose > > > the fact that it hangs after, presumably, the last crypto operation is > indicative of a thread or VM related problem, but i could be wrong. The mauve one works for me too. I'll check that. > this is indicative of a possible problem with the DSS/DSA JCE Adapters. > an example code/test-case, with the data that caused the exception, > would be a great help in finding the bug and validating the fix. I'm in contact with a developer of that software and maybe we can build a testcase. TWISTI