Hello ,

We are using JSCH library to implement our SFTP client.
We need to use hmac 256 and hmac 512  algorithm so as to make our client NIST SP 800 enabled.

We found that jsch-0.1.49 supports both these algorithms.
I have implemented the code to have

config.put("cipher.c2s", "3des-cbc,aes192-cbc,aes128-cbc,aes256-cbc");
config.put("mac.c2s", "hmac-sha2-256");
session.setConfig(config);
session.connect();

Some how It does not work with the SFTP server which supports this algo. and gives error.

com.jcraft.jsch.JSchException: Algorithm negotiation fail
        at com.jcraft.jsch.Session.receive_kexinit(Session.java:559)
        at com.jcraft.jsch.Session.connect(Session.java:299)
        at com.jcraft.jsch.Session.connect(Session.java:162)

Please help us to know if anything wrong in above code.

Thanks and Regards,
Usha