AES256 cipher does not work

When attempting to configure the aes256-cbc or aes256-ctr ciphers an exception is seen when attempting to connect to a server.

Exception: com.maverick.ssh.SshException: Invalid encryption key

The JCE is probably restricting access to the 256 bit cipher due to the jurisdiction policy files, without the unlimited strength jurisdiction policy files installed in the JRE the maximum limit of a cipher is 128 bits.

Here is a useful article that shows how to test if the cipher bit length is restricted.

Download the 'Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files' from and follow the instructions

Have more questions? Submit a request


Please sign in to leave a comment.