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

under key wrap mode, Blowfish/cbC/NoPaDDing won't work.

    XMLWordPrintable

Details

    • fontanel
    • sparc
    • solaris_7
    • Verified

    Description

      Under key wrap mode, the plain text is 800 bytes.

      Blowfish/cbC/NoPaDDing won't work.
      Blowfish/pCbC/NoPaDDing won't work.
      Blowfish/ECb/NoPaDDing won't work.
      all other modes for Blowfish work well.
      all modes for DES and DESede work well.

      the following exception will be threw.

      Testing: Blowfish/ECb/NoPaDDing
      java.lang.ArrayIndexOutOfBoundsException: 7
              at com.sun.crypto.provider.ac.a([DashoPro-V1.2-120198], Compiled Code)
              at com.sun.crypto.provider.ac.b([DashoPro-V1.2-120198], Compiled Code)
              at com.sun.crypto.provider.ad.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 com.sun.crypto.provider.BlowfishCipher.engineDoFinal([DashoPro-V1.2-120198], Compiled Code)
              at com.sun.crypto.provider.BlowfishCipher.engineWrap([DashoPro-V1.2-120198], Compiled Code)
              at javax.crypto.Cipher.wrap([DashoPro-V1.2-120198], Compiled Code)
              at TestCipherKeyWrapper.runTest(TestCipherKeyWrapper.java, Compiled Code)
              at TestCipherKeyWrapper.run(TestCipherKeyWrapper.java, Compiled Code)
              at TestCipherKeyWrapper.main(TestCipherKeyWrapper.java, Compiled Code)
      Testing: Blowfish/cbC/NoPaDDing
      java.lang.ArrayIndexOutOfBoundsException: 7
              at com.sun.crypto.provider.g.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 com.sun.crypto.provider.BlowfishCipher.engineDoFinal([DashoPro-V1.2-120198], Compiled Code)
              at com.sun.crypto.provider.BlowfishCipher.engineWrap([DashoPro-V1.2-120198], Compiled Code)
              at javax.crypto.Cipher.wrap([DashoPro-V1.2-120198], Compiled Code)
              at TestCipherKeyWrapper.runTest(TestCipherKeyWrapper.java, Compiled Code)
              at TestCipherKeyWrapper.run(TestCipherKeyWrapper.java, Compiled Code)
              at TestCipherKeyWrapper.main(TestCipherKeyWrapper.java, Compiled Code)

      Testing: Blowfish/pCbC/NoPaDDing
      java.lang.ArrayIndexOutOfBoundsException: 7
              at com.sun.crypto.provider.j.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 com.sun.crypto.provider.BlowfishCipher.engineDoFinal([DashoPro-V1.2-120198], Compiled Code)
              at com.sun.crypto.provider.BlowfishCipher.engineWrap([DashoPro-V1.2-120198], Compiled Code)
              at javax.crypto.Cipher.wrap([DashoPro-V1.2-120198], Compiled Code)
              at TestCipherKeyWrapper.runTest(TestCipherKeyWrapper.java, Compiled Code)
              at TestCipherKeyWrapper.run(TestCipherKeyWrapper.java, Compiled Code)
              at TestCipherKeyWrapper.main(TestCipherKeyWrapper.java, Compiled Code)

      =============================
      For more detail, see attachment.
      1. 022300 is logfile for this test.
      2. TestCipherKeyWrapper.java is testing program

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: