#46 Encryption Algorithms hard-coded in source code

open
nobody
None
5
2010-06-30
2010-06-30
Nick Tan
No

jsch cannot load RSA identity file generated by OpenSSH with AES 128 algorithm
after investigating the source code, found that jsch just hard-coded the alg in com.jcraft.jsch.IdentityFile.IdentityFile(String, byte[], byte[], JSch)

is there any stories for this hard-coding or just a hiden bug?

Discussion

  • Nick Tan

    Nick Tan - 2010-06-30

    both on jsch-0.1.41, jsch-0.1.42
    currently i hack the code, that parse the identity file, read the Dek-Info line, get the algorithm, and maps it to internal jsch algorithm name

     
  • Nick Tan

    Nick Tan - 2010-09-23

    thanks sattvik
    actually i also hacked the code in O-O way, and works fine...

    recently i'm migrating to Ganymed SSH-2
    http://www.cleondris.ch/opensource/ssh2/
    which is well designed and full of javadocs to help understanding the source code. this project went alive month ago...

     

Log in to post a comment.