| Author |
SSHTools, SFTP, Bouncy Castle, JCE, AES128 CBC and other acronyms. Help me put them together.
|
Paul Policarp
Greenhorn
Joined: May 07, 2010
Posts: 18
|
|
Hi. I'm trying to implement a windows SFTP server using SSHTools (j2ssh) and it has to use AES 128 CBC encryption. SSHTools supposedly has classes for all this and they are all configurable in one of the configuration XMLs.
Or were.
The documentation is hardly up to date and the classes no longer exist, so I tried to recreate them. This is what my AES class looked like:
Basically I just copy-pasted their CBC DES class and replaced the essentials. I load it via the XML file but when I try to connect with a linux client and using the cipher, my server throws a socket is EOF IO exception after my client says it cannot find the AES cipher on the server, just the two that are part of the API.
So I edited the SSHTools API to make it load the AES class by default without needing the XML file.
Now whenever I try to connect, I don't get an exception, but rather the server hangs on
07.05.2010 16:27:05 com.sshtools.j2ssh.transport.cipher.SshCipherFactory newInstance
INFO: Creating new aes128-cbc cipher instance
Please help me with this. I've been working on this damned server for months now and I'm quite literally at wit's end. If you need any more information I will gladly supply it.
Thanks.
|
 |
Paul Policarp
Greenhorn
Joined: May 07, 2010
Posts: 18
|
|
|
I've solved the problem, this thread can be closed.
|
 |
Paul Policarp
Greenhorn
Joined: May 07, 2010
Posts: 18
|
|
Just in case anyone's interested, this is my cipher (and this is my gun).
Notable changes include the usage of SecretKeySpec in cipher.init and the keysize of 16 bytes (128 bits). It's working now.
|
 |
 |
|
|
subject: SSHTools, SFTP, Bouncy Castle, JCE, AES128 CBC and other acronyms. Help me put them together.
|
|
|