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

compiler/codegen/aes/TestAESMain.java failed with GCM mode must be used with NoPadding

XMLWordPrintable

      For random generator using seed: -8985920662877597219
      To re-run test with same seed value please add "-Djdk.test.lib.random.seed=-8985920662877597219" to command line.

      algorithm=AES, mode=GCM, paddingStr=PKCS5Padding, msgSize=646, keySize=128, noReinit=false, checkOutput=true, encInputOffset=0, encOutputOffset=0, decOutputOffset=0, lastChunkSize=32
      Algorithm: AES(128bit)
      ----------System.err:(14/1065)----------
      javax.crypto.NoSuchPaddingException: GCM mode must be used with NoPadding
      at java.base/com.sun.crypto.provider.CipherCore.setPadding(CipherCore.java:299)
      at java.base/com.sun.crypto.provider.AESCipher.engineSetPadding(AESCipher.java:212)
      at java.base/javax.crypto.Cipher$Transform.setModePadding(Cipher.java:391)
      at java.base/javax.crypto.Cipher.getInstance(Cipher.java:738)
      at java.base/javax.crypto.Cipher.getInstance(Cipher.java:645)
      at compiler.codegen.aes.TestAESBase.prepare(TestAESBase.java:106)
      at compiler.codegen.aes.TestAESMain.main(TestAESMain.java:151)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:830)

            valeriep Valerie Peng
            mikael Mikael Vidstedt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: