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

jce/ECC fails on Linux and Solaris-sparc for "Could not parse key"

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux, solaris, windows

      Description

      After updating the NSS libs in sqe test suite to the latest versions, the jce/ECC test still fails due to:
      "java.security.spec.InvalidKeySpecException: Could not parse key" exception

      The test is being tried on both Solaris-sparc and Linux platforms. And the two tries throw the same exceptions. So this is not like CR 7152169 which only happens on Solaris-sparc.

      This exception is thrown for this line of TestKeyFactory.java:
      KeySpec keySpec = kf.getKeySpec(key, ECPublicKeySpec.class);

      And the stacktrace is like:
      java.security.spec.InvalidKeySpecException: Could not parse key
      at
      sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(P11ECKeyFactory.java:276)

      at
      sun.security.pkcs11.P11KeyFactory.engineGetKeySpec(P11KeyFactory.java:94)
      at java.security.KeyFactory.getKeySpec(KeyFactory.java:413)
      at TestKeyFactory.testPublic(TestKeyFactory.java:55)
      at TestKeyFactory.test(TestKeyFactory.java:100)
      at TestKeyFactory.main(TestKeyFactory.java:136)
      Caused by: java.io.IOException: Point does not match field size
      at sun.security.ec.ECParameters.decodePoint(ECParameters.java:92)
      at
      sun.security.pkcs11.P11ECKeyFactory.decodePoint(P11ECKeyFactory.java:80)
      at
      sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(P11ECKeyFactory.java:273)

      ... 5 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vinnie Vincent Ryan
                Reporter:
                yulixu Vivian Xu (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: