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

-Xcheck:jni changes cause many JCK failures in api/javax_crypto tests in SunPKCS11

    Details

    • Introduced In Build:
      b02
    • Resolved In Build:
      b40
    • CPU:
      generic
    • Verification:
      Verified

      Backports

        Description

        Changes introduced by JDK-6311046 resulted in failures in many JCK api/javax_crypto tests. BaddPaddingExceptions and InvalidKeyExceptions are thrown with the same message of "Invalid pad value". The failure occurs only with SunPKCS11 provider, which is default on Solaris installs. It can occur on other OSes if SunPKCS11 is enabled.

        java.security.InvalidKeyException: Invalid pad value!
                at javax.crypto.SealedObject.getObject(SealedObject.java:355)
                at javasoft.sqe.tests.api.javax.crypto.SealedObject.getObject4Tests.getObject4Tests0001(getObject4Tests.java:125)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                ...


        The following tests that threw exceptions causing a failure are:
        api/javax_crypto/Cipher/index_doFinal1Tests
        api/javax_crypto/Cipher/index_doFinal2Tests
        api/javax_crypto/Cipher/index_doFinal3Tests
        api/javax_crypto/Cipher/index_doFinal4Tests
        api/javax_crypto/Cipher/index_init1Tests
        api/javax_crypto/Cipher/index_init2Tests
        api/javax_crypto/Cipher/index_update1Tests
        api/javax_crypto/Cipher/index_update2Tests
        api/javax_crypto/CipherInputStream/index2_read5
        api/javax_crypto/CipherInputStream/index_read1Tests
        api/javax_crypto/CipherInputStream/index_read2Tests
        api/javax_crypto/CipherInputStream/index_read3Tests
        api/javax_crypto/CipherOutputStream/index_flushTests
        api/javax_crypto/CipherOutputStream/index_write1Tests
        api/javax_crypto/CipherOutputStream/index_write2Tests
        api/javax_crypto/CipherOutputStream/index_write3Tests
        api/javax_crypto/SealedObject/index2_getObject4
        api/javax_crypto/SealedObject/index_getObject1Tests
        api/javax_crypto/SealedObject/index_getObject2Tests
        api/javax_crypto/SealedObject/index_getObject3Tests

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ascarpino Anthony Scarpino
                  Reporter:
                  ascarpino Anthony Scarpino
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: