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

sun/security/pkcs11/ec/TestECDH2.java and sun/security/pkcs11/ec/TestECDSA2.java failed on Solaris 11.

XMLWordPrintable

      Test environment:
      JDK: JDK6u171 build 07
      Test OS: Solaris 11 x64
      Locale: Japanese, English

      Test sun/security/pkcs11/ec/TestECDH2.java and sun/security/pkcs11/ec/TestECDSA2.java failed with following exception:

      1. sun/security/pkcs11/ec/TestECDH2.java
      ----------System.err:(28/1578)----------
      java.lang.RuntimeException: Could not parse key values
      at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:962)
      at sun.security.pkcs11.P11Key$P11ECPublicKey.getParams(P11Key.java:987)
      at sun.security.pkcs11.P11ECDHKeyAgreement.engineDoPhase(P11ECDHKeyAgreement.java:94)
      at javax.crypto.KeyAgreement.doPhase(KeyAgreement.java:524)
      at TestECDH2.testKeyAgreement(TestECDH2.java:67)
      at TestECDH2.main(TestECDH2.java:117)
      at PKCS11Test.premain(PKCS11Test.java:30)
      at PKCS11Test.testNSS(PKCS11Test.java:162)
      at PKCS11Test.main(PKCS11Test.java:38)
      at TestECDH2.main(TestECDH2.java:100)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(Thread.java:682)
      Caused by: java.io.IOException: extra data given to DerValue constructor
      at sun.security.util.DerValue.init(DerValue.java:394)
      at sun.security.util.DerValue.<init>(DerValue.java:276)
      at sun.security.util.DerValue.<init>(DerValue.java:287)
      at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:950)
      ... 15 more
      JavaTest Message: Test threw exception: java.lang.RuntimeException: Could not parse key values
      JavaTest Message: shutting down test
      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Could not parse key values

      2. sun/security/pkcs11/ec/TestECDSA2.java
      ----------System.err:(18/967)----------
      java.lang.Exception: Error: Signature verification failed
      at TestECDSA2.testSignAndVerify(TestECDSA2.java:73)
      at TestECDSA2.main(TestECDSA2.java:112)
      at PKCS11Test.premain(PKCS11Test.java:30)
      at PKCS11Test.testNSS(PKCS11Test.java:162)
      at PKCS11Test.main(PKCS11Test.java:38)
      at TestECDSA2.main(TestECDSA2.java:91)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(Thread.java:682)
      JavaTest Message: Test threw exception: java.lang.Exception: Error: Signature verification failed
      JavaTest Message: shutting down test
      STATUS:Failed.`main' threw exception: java.lang.Exception: Error: Signature verification failed

      Run these two tests separately with English locale on the same machine, the tests also failed with the same error.

            igerasim Ivan Gerasimov
            dzhou Dora Zhou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: