#35 Illegal key size for aes256-cbc and aes192-cbc ciphers

closed
nobody
None
5
2007-10-02
2007-10-02
No

When the ssh server is using only a aes256-cbc and/or aes192-cbc the jsch client fial with an Algorithm negotiation fail.

I tacked down the error: see the attached file.

Discussion

  • Jsch exceptions trace

     
    Attachments
  • Logged In: YES
    user_id=1711943
    Originator: YES

    File Added: Jsch.trace.txt

     
  • Logged In: YES
    user_id=1711943
    Originator: YES

    FYI: I get this exception on sun jdk 1.5
    on blackdown 1.4.2 I get:
    Connecting to localhost port 22
    Connection established
    Remote version string: SSH-1.99-OpenSSH_4.4
    Local version string: SSH-2.0-JSCH-0.1.34
    CheckCiphers: aes256-cbc,aes192-cbc,aes128-cbc
    Unsupported keysize or algorithm parameters
    java.lang.SecurityException: Unsupported keysize or algorithm parameters
    at javax.crypto.Cipher.init(DashoA12275)
    at com.jcraft.jsch.jce.AES256CBC.init(Unknown Source)
    at com.jcraft.jsch.Session.checkCiphers(Unknown Source)
    at com.jcraft.jsch.Session.send_kexinit(Unknown Source)
    at com.jcraft.jsch.Session.connect(Unknown Source)
    at com.jcraft.jsch.Session.connect(Unknown Source)
    at Scp.main(Scp.java:31)
    Unsupported keysize or algorithm parameters
    java.lang.SecurityException: Unsupported keysize or algorithm parameters
    at javax.crypto.Cipher.init(DashoA12275)
    at com.jcraft.jsch.jce.AES192CBC.init(Unknown Source)
    at com.jcraft.jsch.Session.checkCiphers(Unknown Source)
    at com.jcraft.jsch.Session.send_kexinit(Unknown Source)
    at com.jcraft.jsch.Session.connect(Unknown Source)
    at com.jcraft.jsch.Session.connect(Unknown Source)
    at Scp.main(Scp.java:31)

     
    • status: open --> closed