Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-357

ARCFOUR 128/256 ciphers initialization incorrect - always fails

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gnodet Guillaume Nodet
            lgoldstein Lyor Goldstein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment