Re: [JSch-users] JSCH - Change order of preference for key exchange algorithms for connection
Status: Alpha
Brought to you by:
ymnk
From: nazlı g. <naz...@gm...> - 2010-08-31 06:49:52
|
Thank you very much for the answer, I patched and it worked. The previous example case was given for just an example, to make it clear, no problem with it. Thanks again, Nazli 2010/8/24 Atsuhiko Yamanaka <ym...@jc...> > Hi, > > +-From: =?ISO-8859-9?B?bmF6bP0gZ/xuZPx6?= <naz...@gm...> -- > |_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(){ > -- Nazli |