Hi JSch Experts
Quoting http://www.jcraft.com/jsch/ :
----------------------------------------------
Features
The current JSch has the following features.
Cipher:
blowfish-cbc,3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-ctr,arcfour,arcfour128,arcfour256
----------------------------------------------
I am using JSch 0.1.54 library version.
The above states that aes256-cbc is supported by JSch library. Indeed I see
there is implementation for AES256CBC.java in the package com.jcraft.jsch.jce
in the source code for JSch available from Maven repository
http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.jcraft%22%20AND%20a%3A%22jsch%22
I see that the JSch implementation relies on the JRE's cipher implementation.
SecretKeySpec keyspec=new SecretKeySpec(key, "AES");
cipher=javax.crypto.Cipher.getInstance("AES/CBC/"+pad);
I am using JRE 1.6 with Unlimited Strength Jurisdiction Policy (refer
https://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html)
and JCE is already pre-packaged within JRE 1.6.
However apparently aes256-cbc is not supported with JRE 1.6 since I cannot use
that cipher with JSch when connecting to my SSH Server.
Can you please confirm aes256-cbc is not supported in JRE 1.6 ? Is it possible
for me to enhance JRE 1.6 with support for the aes256-cbc cipher implementation
?
Unfortunately upgrading to higher JRE version (1.7 or 1.8) is not feasible
since it involves massive logistical challenges currently.
Any help is really appreciated. I am totally blocked and need some ideas.
Thanks,
Suchet
Sent with [ProtonMail](https://protonmail.com) Secure Email.
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users