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

ECParameters, Point does not match field size

XMLWordPrintable

        The test fails in non solaris platforms too.

        [2013-09-14T09:39:09.39] + C:/Users/aurora/sandbox/jdk/bin/java -DNSS_LIB_DIR=C:/Users/aurora/sandbox/testbase/tools/lib/nss/WINNT -server -Djava.security.manager -Duser.timezone=PST -Djava.security.policy=C:/Users/aurora/sandbox/results/ResultDir/KeyFactory/./policy.txt TestKeyFactory ecprovider.cfg
        [2013-09-14T09:39:09.39] Exception in thread "main" java.security.spec.InvalidKeySpecException: Could not parse key
        [2013-09-14T09:39:09.39] at sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(P11ECKeyFactory.java:299)
        [2013-09-14T09:39:09.39] at sun.security.pkcs11.P11KeyFactory.engineGetKeySpec(P11KeyFactory.java:94)
        [2013-09-14T09:39:09.39] at java.security.KeyFactory.getKeySpec(KeyFactory.java:413)
        [2013-09-14T09:39:09.39] at TestKeyFactory.testPublic(TestKeyFactory.java:57)
        [2013-09-14T09:39:09.39] at TestKeyFactory.test(TestKeyFactory.java:91)
        [2013-09-14T09:39:09.39] at TestKeyFactory.main(TestKeyFactory.java:126)
        [2013-09-14T09:39:09.39] Caused by: java.io.IOException: Point does not match field size
        [2013-09-14T09:39:09.39] at sun.security.util.ECUtil.decodePoint(ECUtil.java:54)
        [2013-09-14T09:39:09.39] at sun.security.pkcs11.P11ECKeyFactory.decodePoint(P11ECKeyFactory.java:89)
        [2013-09-14T09:39:09.39] at sun.security.pkcs11.P11ECKeyFactory.implGetPublicKeySpec(P11ECKeyFactory.java:296)
        [2013-09-14T09:39:09.39] ... 5 more


        related issues :: INTJDK-7606293

              ascarpino Anthony Scarpino
              nisriniv Nithya Srinivasan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: