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

Cannot initialize "AES/GCM/NoPadding" on wrap/unseal on solaris with OracleUcrypto

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b113
    • OS:
      solaris
    • Verification:
      Verified

      Backports

        Description

        The test code is attached with the bug.

        Stack trace on Cipher.wrap:
        com.oracle.security.ucrypto.UcryptoException: Cannot initialize Cipher
        at com.oracle.security.ucrypto.NativeCipher.ensureInitialized(NativeCipher.java:652)
        at com.oracle.security.ucrypto.NativeCipher.update(NativeCipher.java:683)
        at com.oracle.security.ucrypto.NativeCipher.engineDoFinal(NativeCipher.java:538)
        at com.oracle.security.ucrypto.NativeCipher.engineDoFinal(NativeCipher.java:520)
        at com.oracle.security.ucrypto.NativeCipher.engineWrap(NativeCipher.java:557)
        at javax.crypto.Cipher.wrap(Cipher.java:2427)
        at AEADKeyWrapperTest.execute(AEADKeyWrapperTest.java:70)
        at AEADKeyWrapperTest.main(AEADKeyWrapperTest.java:46)

        Stack trace on SealedObject.unseal:
        com.oracle.security.ucrypto.UcryptoException: Cannot initialize Cipher
        at com.oracle.security.ucrypto.NativeCipher.ensureInitialized(NativeCipher.java:652)
        at com.oracle.security.ucrypto.NativeCipher.update(NativeCipher.java:683)
        at com.oracle.security.ucrypto.NativeCipher.engineDoFinal(NativeCipher.java:538)
        at com.oracle.security.ucrypto.NativeCipher.engineDoFinal(NativeCipher.java:520)
        at javax.crypto.Cipher.doFinal(Cipher.java:2097)
        at javax.crypto.SealedObject.unseal(SealedObject.java:425)
        at javax.crypto.SealedObject.getObject(SealedObject.java:253)
        at AEAD_SO_Test.execute(AEAD_SO_Test.java:102)
        at AEAD_SO_Test.main(AEAD_SO_Test.java:44)

        These failures are not observed on other platforms.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  valeriep Valerie Peng
                  Reporter:
                  rhalade Rajan Halade
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: