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

Test failures with NoSuchAlgorithmException: Unsupported mode GCM after JDK-8223482

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 13
    • Fix Version/s: 14
    • Component/s: security-libs
    • Labels:

      Description

      open/test/jdk/sun/security/pkcs11/tls/tls12/FipsModeTLS12.java

      Windows

      ----------System.err:(38/2918)----------
      javax.net.ssl.SSLException: Algorithm missing:
      at java.base/sun.security.ssl.ChangeCipherSpec$T10ChangeCipherSpecProducer.produce(ChangeCipherSpec.java:105)
      at java.base/sun.security.ssl.Finished$T12FinishedProducer.onProduceFinished(Finished.java:395)
      at java.base/sun.security.ssl.Finished$T12FinishedProducer.produce(Finished.java:379)
      at java.base/sun.security.ssl.SSLHandshake.produce(SSLHandshake.java:436)
      at java.base/sun.security.ssl.ServerHelloDone$ServerHelloDoneConsumer.consume(ServerHelloDone.java:173)
      at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392)
      at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:443)
      at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1231)
      at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1218)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:690)
      at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask.run(SSLEngineImpl.java:1163)
      at FipsModeTLS12$testTLS12SunPKCS11Communication.runDelegatedTasks(FipsModeTLS12.java:370)
      at FipsModeTLS12$testTLS12SunPKCS11Communication.run(FipsModeTLS12.java:317)
      at FipsModeTLS12.main(FipsModeTLS12.java:99)
      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:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:830)
      Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/GCM/NoPadding
      at java.base/javax.crypto.Cipher.getInstance(Cipher.java:574)
      at java.base/sun.security.ssl.SSLCipher$T12GcmWriteCipherGenerator$GcmWriteCipher.<init>(SSLCipher.java:1725)
      at java.base/sun.security.ssl.SSLCipher$T12GcmWriteCipherGenerator.createCipher(SSLCipher.java:1707)
      at java.base/sun.security.ssl.SSLCipher.createWriteCipher(SSLCipher.java:565)
      at java.base/sun.security.ssl.ChangeCipherSpec$T10ChangeCipherSpecProducer.produce(ChangeCipherSpec.java:99)
      ... 19 more
      Caused by: java.security.NoSuchAlgorithmException: Unsupported mode GCM
      at jdk.crypto.cryptoki/sun.security.pkcs11.P11Cipher.engineSetMode(P11Cipher.java:214)
      at java.base/javax.crypto.Cipher$Transform.setModePadding(Cipher.java:388)
      at java.base/javax.crypto.Cipher.getInstance(Cipher.java:567)
      ... 23 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xuelei Xue-Lei Fan
                Reporter:
                dholmes David Holmes
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: