Hi, +-From: =?ISO-8859-9?B?bmF6bP0gZ/xuZPx6?= <nazligundu...@gmail.com> -- |_Date: Mon, 23 Aug 2010 17:13:07 +0300 ______________________________ | |First session mac.s2c is --> hmac-sha1,hmac-sha1-96,hmac-md5-96,hmac-md5 |Second session mac.s2c --> hmac-sha1-96,hmac-md5-96,hmac-md5,hmac-sha1 |Only difference seems to be the order. I understand that server may not |support hmac-sha1-96, but it also does not try hmac-sha1 which is also in |list and is successfully connected in first session.
I find that there are implementation bugs in hmac-sha1-96 and hmac-md5-96. The following patch will fix them. By the way, your original problem was session.setConfig("cipher.s2c", "aes128-cbc,3des-cbc"); , but I can not reproduce such a problem. Could you send a log? Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Skype callto://jcraft/ Twitter: @ymnk diff -Naur jsch-0.1.43/src/com/jcraft/jsch/jce/HMACMD596.java jsch-0.1.43.new/src/com/jcraft/jsch/jce/HMACMD596.java --- jsch-0.1.43/src/com/jcraft/jsch/jce/HMACMD596.java 2010-03-05 08:07:29.000000000 +0000 +++ jsch-0.1.43.new/src/com/jcraft/jsch/jce/HMACMD596.java 2010-08-24 08:29:49.000000000 +0000 @@ -68,7 +68,7 @@ } catch(ShortBufferException e){ } - System.arraycopy(_buf16, 0, buf, 0, 12); + System.arraycopy(_buf16, 0, buf, offset, 12); } public String getName(){ diff -Naur jsch-0.1.43/src/com/jcraft/jsch/jce/HMACSHA196.java jsch-0.1.43.new/src/com/jcraft/jsch/jce/HMACSHA196.java --- jsch-0.1.43/src/com/jcraft/jsch/jce/HMACSHA196.java 2010-03-05 08:07:39.000000000 +0000 +++ jsch-0.1.43.new/src/com/jcraft/jsch/jce/HMACSHA196.java 2010-08-24 08:29:19.000000000 +0000 @@ -67,7 +67,7 @@ } catch(ShortBufferException e){ } - System.arraycopy(_buf20, 0, buf, 0, 12); + System.arraycopy(_buf20, 0, buf, offset, 12); } public String getName(){ ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users