-
Bug
-
Resolution: Fixed
-
P4
-
unknown
-
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
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
- relates to
-
JDK-4295693 Under CFB24, 40, 48 and 56, Blowfish algorithm won't work properly, as well OFB
- Resolved
-
JDK-4309467 CBC mode should be used in Nopadding mode no matter what is length of input text
- Closed