-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi folks.
I just added support for encrypted keypairs with aes128.cbc cipher
(Debian default using ssh-keygen). The patch is appended and should be
tested before applying.
Bye, Daniel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkysosAACgkQxwmSsslKOXCJTQCgrsKvGQswjYdz3nOIn2BkreAm
25UAoNrzxvVuVQBenX/N38OaqCU9u1HC
=yJ8t
-----END PGP SIGNATURE-----
diff jsch-0.1.43/src/com/jcraft/jsch/IdentityFile.java jsch-0.1.43-orig/src/com/jcraft/jsch/IdentityFile.java
199,217d198
> if (buf[i] == 'A' && buf[i + 1] == 'E' && buf[i + 2] == 'S'
> && buf[i + 3] == '-' && buf[i + 4] == '1'
> && buf[i + 5] == '2' && buf[i + 6] == '8'
> && buf[i + 7] == '-') {
> i += 8;
> if (Session.checkCipher((String) jsch
> .getConfig("aes128-cbc"))) {
> c = Class
> .forName((String) jsch.getConfig("aes128-cbc"));
> cipher = (Cipher) (c.newInstance());
> key = new byte[cipher.getBlockSize()];
> iv = new byte[cipher.getIVSize()];
> } else {
> throw new JSchException(
> "privatekey: aes128-cbc is not available "
> + identity);
> }
> continue;
> }
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users