Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The ARCFOUR128/256 ciphers inherit the default BaseCipher#init implementation which creates an initialization vector. For RC4, this is not required - and indeed causes java.security.InvalidAlgorithmParameterException: Parameters not supported when the cipher is initialized - even though everything is in order (e.g., see what happens when SshServer#setUpDefaultCiphers is run). This means that these RC4 ciphers are never available. The fix (see attached patch file) is to override the init method and provide only a key.