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

[TEST_BUG] Cipher tests fail when running with unlimited policy

    XMLWordPrintable

Details

    Backports

      Description

        When running with unlimited crypto policy, several regression tests under com/sun/crypto/provider failed as a result, e.g.
        Execution failed: `main' threw exception: java.lang.Exception: Test Failed
            com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithDefaultProvider.java: Test AES ciphers with different modes and padding schemes with default provider
            com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithProviderChange.java: Test AES ciphers with different modes and padding schemes after remove then add provider.
            com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithRemoveAddProvider.java: Test AES ciphers with different modes and padding schemes after remove default provider then add it back.

        Execution failed: `main' threw exception: java.lang.RuntimeException: Expected InvalidKeyException exception uncaugh
            com/sun/crypto/provider/Cipher/PBE/TestCipherPBE.java: Tests for PBE ciphers
        Execution failed: `main' threw exception: java.lang.RuntimeException: One or more tests have failed....
            com/sun/crypto/provider/Cipher/PBE/TestCipherKeyWrapperPBEKey.java: Test to see if key wrapper works correctly with PBEKey
        Execution failed: `main' threw exception: java.lang.RuntimeException: Some PBE algorithm tests failed
            com/sun/crypto/provider/Cipher/PBE/PBESameBuffer/PBESameBuffer.java: Verify that same encrypt/decrypt buffer can be used for PBE ciphers
        Execution failed: `main' threw exception: java.security.InvalidParameterException: Keysize must be multiple of 8, and can only range from 32 to 448 (inclusive)
            com/sun/crypto/provider/Cipher/Blowfish/TestCipherBlowfish.java: Test Blowfish cipher with different MODES and padding

        Attachments

          Issue Links

            Activity

              People

                valeriep Valerie Peng
                wetmore Bradford Wetmore
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: