Hi,

   +-From: Scott Spyrison <spyri...@iit.edu> --
   |_Date: Tue, 3 Aug 2010 09:50:11 -0500 _____
   |
   |Using another JCE provider like Bouncy Castle does seem to resolve
   |the issue.  I have not spent all that much time with JCA/JCE, so I
   |never even thought of this.  I did exactly as you suggested, and
   |have been running the test class in a shell loop every 3 seconds
   |on machine B.  I have not seen the symptoms appear even once.
   ...
   |Many thanks for your willingness to assist and your very helpful
   |suggestions, I sincerely appreciate it.

Nice to hear that.  Now, you have a solution.
So, may I ask you to try one more and last thing?
JCE spec states that the default key size of KeyPairGenerator
is 1024 bits, but its implementation on some Solaris machine(T2 processor?)
may not be.  Can you try the following patch?


--- jsch-0.1.43/src/com/jcraft/jsch/jce/DH.java 2010-03-05 08:07:18.000000000 
+0000
+++ jsch-0.1.43.hack/src/com/jcraft/jsch/jce/DH.java    2010-08-04 
01:00:05.000000000 +0000
@@ -53,7 +53,7 @@
   }
   public byte[] getE() throws Exception{
     if(e==null){
-      DHParameterSpec dhSkipParamSpec=new DHParameterSpec(p, g);
+      DHParameterSpec dhSkipParamSpec=new DHParameterSpec(p, g, 1024);
       myKpairGen.initialize(dhSkipParamSpec);
       KeyPair myKpair=myKpairGen.generateKeyPair();
       myKeyAgree.init(myKpair.getPrivate());

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to