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

[TESTBUG] TestECDH.java and TestECDSA.java fail on multiple Linux platforms

    XMLWordPrintable

Details

    Description

      The following PKCS11 tests fail on Ubuntu 15.10 (have since been tested on other Linux flavors, and have been proven to fail on some of those too):

      sun/security/pkcs11/ec/TestECDH.java
      sun/security/pkcs11/ec/TestECDSA.java

      The tests fail with exceptions like the following:

      java.security.spec.InvalidKeySpecException: Could not create EC public key
      at sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:173)
      at java.security.KeyFactory.generatePublic(KeyFactory.java:328)
      at TestECDH.test(TestECDH.java:94)
      at TestECDH.main(TestECDH.java:86)
      at PKCS11Test.premain(PKCS11Test.java:86)
      at PKCS11Test.testNSS(PKCS11Test.java:401)
      at PKCS11Test.main(PKCS11Test.java:96)
      at TestECDH.main(TestECDH.java:124)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.security.InvalidKeyException: Could not create EC public key
      at sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:130)
      at sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:171)
      ... 13 more
      Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID
      at sun.security.pkcs11.wrapper.PKCS11.C_CreateObject(Native Method)
      at sun.security.pkcs11.P11ECKeyFactory.generatePublic(P11ECKeyFactory.java:254)
      at sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:110)
      ... 14 more

      Attachments

        Issue Links

          Activity

            People

              tvoniadka Thejasvi Voniadka (Inactive)
              vagarwal Vikrant Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: