Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4301404

blowfish/cFB/NoPaDDing mode won't work properly

XMLWordPrintable

    • 1.2.1ea
    • sparc
    • solaris_7

      I try blowfish algorithm with the cFB/NoPaDDing and CFb64/NoPaDDing, if the length of plaintext is the multiple of 8, it work. but if the length of plaintext is not the multiple of 8, the ArrayIndexOutOfBoundsException is threw.

      see the following message

      java.lang.ArrayIndexOutOfBoundsException: 1
              at com.sun.crypto.provider.h.b([DashoPro-V1.2-120198], Compiled Code)
              at com.sun.crypto.provider.BlowfishCipher.a([DashoPro-V1.2-120198], Compiled Code)
              at com.sun.crypto.provider.BlowfishCipher.engineDoFinal([DashoPro-V1.2-120198], Compiled Code)
              at javax.crypto.Cipher.doFinal([DashoPro-V1.2-120198], Compiled Code)
              at TestCipherNoPaddingBlowfish.runTest(TestCipherNoPaddingBlowfish.java, Compiled Code)
              at TestCipherNoPaddingBlowfish.run(TestCipherNoPaddingBlowfish.java, Compiled Code)
              at TestCipherNoPaddingBlowfish.main(TestCipherNoPaddingBlowfish.java, Compiled Code)
      Testing: blowfish/CFb64/NoPaDDing
      java.lang.ArrayIndexOutOfBoundsException: 1
              at com.sun.crypto.provider.h.b([DashoPro-V1.2-120198], Compiled Code)
              at com.sun.crypto.provider.BlowfishCipher.a([DashoPro-V1.2-120198], Compiled Code)
              at com.sun.crypto.provider.BlowfishCipher.engineDoFinal([DashoPro-V1.2-120198], Compiled Code)
              at javax.crypto.Cipher.doFinal([DashoPro-V1.2-120198], Compiled Code)
              at TestCipherNoPaddingBlowfish.runTest(TestCipherNoPaddingBlowfish.java, Compiled Code)
              at TestCipherNoPaddingBlowfish.run(TestCipherNoPaddingBlowfish.java, Compiled Code)
              at TestCipherNoPaddingBlowfish.main(TestCipherNoPaddingBlowfish.java, Compiled Code)
      STATUS:Failed. 2 Failed: blowfish/cFB/NoPaDDing blowfish/CFb64/NoPaDDing

            shihliu Sharon Liu (Inactive)
            skesunw Stuart Ke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: