Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

SSHTools, SFTP, Bouncy Castle, JCE, AES128 CBC and other acronyms. Help me put them together.

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've solved the problem, this thread can be closed.
 
Paul Policarp
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
We don't have time for this. We've gotta save the moon! Or check this out:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic