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

Blowfish algorithm won't work properly under Global policy

XMLWordPrintable

    • 1.2.1ea
    • sparc
    • solaris_7

      Blowfish algorithm implemented by Sun Provider won't work properly under Global policy file

      When I run the my testing program under the global policy file, what I expected is that it catch 12 expected exceptions whose key length is longer 56.
      and for those key length shorter than 56, it should work properly (actually, it failed when key length is 56 and 32.


      =========== TestAuthenticateBlowfish ==========
      Catch expected exception due to the KeySize 224 is longer than 56
      Catch expected exception due to the KeySize 200 is longer than 56
      Catch expected exception due to the KeySize 176 is longer than 56
      Catch expected exception due to the KeySize 152 is longer than 56
      Catch expected exception due to the KeySize 128 is longer than 56
      Catch expected exception due to the KeySize 104 is longer than 56
      Catch expected exception due to the KeySize 80 is longer than 56
      Catch unexpected exception, KeySize 56 Testing: blowfish/Cfb32/NoPaDDing
      java.lang.SecurityException: Double encryption
              at javax.crypto.Cipher.a([DashoPro-V1.2-120198], Compiled Code)
              at javax.crypto.Cipher.doFinal([DashoPro-V1.2-120198], Compiled Code)
              at TestAuthenticateBlowfish.runTest(TestAuthenticateBlowfish.java, Compiled Code)
              at TestAuthenticateBlowfish.run(TestAuthenticateBlowfish.java, Compiled Code)
              at TestAuthenticateBlowfish.main(TestAuthenticateBlowfish.java, Compiled Code)
      Catch unexpected exception, KeySize 32 Testing: blowfish/OfB/PKCS5Padding
      java.lang.SecurityException: Double encryption
              at javax.crypto.Cipher.a([DashoPro-V1.2-120198], Compiled Code)
              at javax.crypto.Cipher.doFinal([DashoPro-V1.2-120198], Compiled Code)
              at TestAuthenticateBlowfish.runTest(TestAuthenticateBlowfish.java, Compiled Code)
              at TestAuthenticateBlowfish.run(TestAuthenticateBlowfish.java, Compiled Code)
              at TestAuthenticateBlowfish.main(TestAuthenticateBlowfish.java, Compiled Code)
      Catch expected exception due to the KeySize 448 is longer than 56
      Catch expected exception due to the KeySize 424 is longer than 56
      Catch expected exception due to the KeySize 400 is longer than 56
      Catch expected exception due to the KeySize 376 is longer than 56
      Catch expected exception due to the KeySize 352 is longer than 56
      STATUS:Failed. 2 Failed: blowfish/Cfb32/NoPaDDing blowfish/OfB/PKCS5Padding

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: