Goldstein Lyor created SSHD-357:
-----------------------------------

             Summary: ARCFOUR 128/256 ciphers initialization incorrect - always 
fails
                 Key: SSHD-357
                 URL: https://issues.apache.org/jira/browse/SSHD-357
             Project: MINA SSHD
          Issue Type: Bug
            Reporter: Goldstein Lyor
             Fix For: 0.13.0


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to