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

it seems that the obfuscation Obfuscation wasn't done properly

XMLWordPrintable

    • 1.2.1ea
    • sparc
    • solaris_7

      It seems that the obfuscation wasn't done properly
      When I run JCE 1.2 test suite, it doesn't work and the following message come out ---

      ----------------------
      < CICO >
      =========== Chaining ==========
      STATUS:Passed. Test 2 Cases All Passed
      =========== Skip ==========
      TestCICOSkip.java:191: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
          ci1.init( Cipher.ENCRYPT_MODE, key, aps );
                          ^
      TestCICOSkip.java:200: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
          ci2.init( Cipher.DECRYPT_MODE, key, aps );
                          ^
      TestCICOSkip.java:221: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
            ci1.init( Cipher.ENCRYPT_MODE, key, aps );
                            ^
      TestCICOSkip.java:224: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
            ci2.init( Cipher.DECRYPT_MODE, key, aps );
                            ^
      4 errors
      Exception in thread "main" java.lang.NoClassDefFoundError: CipherGenerator
              at TestCICOSkip.run(TestCICOSkip.java, Compiled Code)
              at TestCICOSkip.main(TestCICOSkip.java, Compiled Code)
      =========== DESFunc ==========
      TestCICODESFunc.java:87: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
                  ci1.init( Cipher.ENCRYPT_MODE, key, aps );
                                  ^
      TestCICODESFunc.java:94: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
                  ci2.init( Cipher.DECRYPT_MODE, key, aps );
                                  ^
      2 errors
      Exception in thread "main" java.lang.NoClassDefFoundError: TestCICODESFunc
      =========== PBEFunc ==========
      TestCICOPBEFunc.java:81: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
                  ci1.init( Cipher.ENCRYPT_MODE, key, aps );
                                  ^
      TestCICOPBEFunc.java:82: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
                  ci2.init( Cipher.DECRYPT_MODE, key, aps );
                                  ^
      2 errors
      Exception in thread "main" java.lang.NoClassDefFoundError: TestCICOPBEFunc


      < Cipher >
      =========== BlowfishFunc ==========
      TestCipherBlowfishFunc.java:95: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
                  ci.init( Cipher.ENCRYPT_MODE, key, aps );
                                 ^
      TestCipherBlowfishFunc.java:106: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
                  ci.init( Cipher.DECRYPT_MODE, key, aps );
                                 ^
      TestCipherBlowfishFunc.java:108: Wrong number of arguments in method.
                  int len = ci.doFinal( cipherText, 0, cipherText.length,
      recoveredText );
                                      ^
      3 errors
      Exception in thread "main" java.lang.NoClassDefFoundError:
      TestCipherBlowfishFunc
      =========== DESFunc ==========
      TestCipherDESFunc.java:82: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
                  ci.init( Cipher.ENCRYPT_MODE, key, aps );
                                 ^
      TestCipherDESFunc.java:93: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
                  ci.init( Cipher.DECRYPT_MODE, key, aps );
                                 ^
      TestCipherDESFunc.java:95: Wrong number of arguments in method.
                  int len = ci.doFinal( cipherText, 0, cipherText.length,
      recoveredText );
                                      ^
      3 errors
      Exception in thread "main" java.lang.NoClassDefFoundError: TestCipherDESFunc
      =========== PBEFunc ==========
      TestCipherPBEFunc.java:81: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
            ci.init( Cipher.ENCRYPT_MODE, key, aps );
                           ^
      TestCipherPBEFunc.java:87: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
            ci.init( Cipher.DECRYPT_MODE, key, aps );
                           ^
      TestCipherPBEFunc.java:89: Wrong number of arguments in method.
            int len = ci.doFinal( cipherText, 0, cipherText.length, recoveredText );
                                ^
      3 errors
      Exception in thread "main" java.lang.NoClassDefFoundError: TestCipherPBEFunc
      =========== PBECons ==========
      STATUS:Passed. All 28 Tests Passed
      =========== PKCS5Padding ==========
      TestBadPaddingEx.java:40: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
            c.init(Cipher.ENCRYPT_MODE, skey);
                         ^
      TestBadPaddingEx.java:48: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
            c.init(Cipher.DECRYPT_MODE, skey, params);
                         ^
      2 errors
      Exception in thread "main" java.lang.NoClassDefFoundError: TestBadPaddingEx
              at TestCipherPKCS5Padding.main(TestCipherPKCS5Padding.java, Compiled
      Code)
      =========== NCFunc ==========
      TestCipherNCFunc.java:62: Wrong number of arguments in method.
                  int len = ci.doFinal( cipherText, 0, cipherText.length,
      recoveredText );
                                      ^
      1 error
      Exception in thread "main" java.lang.NoClassDefFoundError: TestCipherNCFunc
      =========== SameBuffer ==========
      TestCipherSameBuffer.java:64: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
                      if (!desCi.execute(Cipher.ENCRYPT_MODE, inputText, 0, inputLen))
      {
                                               ^
      TestCipherSameBuffer.java:76: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
                      if (!desCi.execute(Cipher.DECRYPT_MODE, inputText,
                                               ^
      TestCipherSameBuffer.java:92: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
                      if (!pbeCi.execute(Cipher.ENCRYPT_MODE, inputText, 0, inputLen))
      {
                                               ^
      TestCipherSameBuffer.java:102: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
                      if (!pbeCi.execute(Cipher.DECRYPT_MODE, inputText,
                                               ^
      4 errors
      Exception in thread "main" java.lang.NoClassDefFoundError: TestCipherSameBuffer
      =========== TextLength ==========
      TestCipherTextLength.java:65: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
                    errorCode = desCi.execute(Cipher.ENCRYPT_MODE, inputText);
                                                    ^
      TestCipherTextLength.java:71: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
                    errorCode = desCi.execute(Cipher.DECRYPT_MODE,
                                                    ^
      TestCipherTextLength.java:94: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
              errorCode = pbeCi.execute(Cipher.ENCRYPT_MODE, inputText);
                                              ^
      TestCipherTextLength.java:99: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
              errorCode = pbeCi.execute(Cipher.DECRYPT_MODE, pbeCi.getResult());
                                              ^
      4 errors
      Exception in thread "main" java.lang.NoClassDefFoundError: TestCipherTextLength
      =========== DESWithRSAEncrypt ==========
      TestDESWithRSAEncrypt.java:131: No variable DECRYPT_MODE defined in class
      javax.crypto.Cipher.
                  sunCipher.init( Cipher.DECRYPT_MODE, sunKey, sunParams );
                                        ^
      TestDESWithRSAEncrypt.java:133: Wrong number of arguments in method.
                  int len = sunCipher.doFinal( cipherText, 0, cipherText.length,
      recoveredText );
                                             ^
      2 errors
      Exception in thread "main" java.lang.NoClassDefFoundError: TestDESWithRSAEncrypt
      =========== DESWithRSADecrypt ==========
      TestDESWithRSADecrypt.java:88: No variable ENCRYPT_MODE defined in class
      javax.crypto.Cipher.
                  sunCipher.init( Cipher.ENCRYPT_MODE, sunKey, sunParams );
                                        ^
      1 error



      -------------

            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: