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

Session should use cipher block size and not IV size to calculate padding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.1.0, 2.2.0, 2.3.0
    • 2.4.0
    • None
    • Important

    Description

      AbstractSession.java
      // values are subsequently used to calculated padding boundary
      inCipherSize = inCipher.getIVSize();
      outCipherSize = outCipher.getIVSize();
      

      By chance, since usually the selected cipher is AES we get 16 which is both the initial vector (IV) and cipher block size.

      Attachments

        Activity

          People

            lgoldstein Lyor Goldstein
            lgoldstein Lyor Goldstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: