Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-2011

Crypto tests fail on JDK 11+

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      [INFO] 
      [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ xwiki-commons-crypto-password ---
      [INFO] 
      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.xwiki.crypto.password.internal.DefaultPrivateKeyPasswordBasedEncryptorTest
      [ERROR] Tests run: 7, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 1.766 s <<< FAILURE! - in org.xwiki.crypto.password.internal.DefaultPrivateKeyPasswordBasedEncryptorTest
      [ERROR] pbes2ConformanceTestBlowfish  Time elapsed: 0.09 s  <<< ERROR!
      java.io.IOException: PBE parameter parsing error: expecting the object identifier for AES cipher
      	at java.base/com.sun.crypto.provider.PBES2Parameters.parseES(PBES2Parameters.java:377)
      	at java.base/com.sun.crypto.provider.PBES2Parameters.engineInit(PBES2Parameters.java:285)
      	at java.base/java.security.AlgorithmParameters.init(AlgorithmParameters.java:312)
      	at java.base/sun.security.x509.AlgorithmId.decodeParams(AlgorithmId.java:137)
      	at java.base/sun.security.x509.AlgorithmId.<init>(AlgorithmId.java:119)
      	at java.base/sun.security.x509.AlgorithmId.parse(AlgorithmId.java:384)
      	at java.base/javax.crypto.EncryptedPrivateKeyInfo.<init>(EncryptedPrivateKeyInfo.java:98)
      	at org.xwiki.crypto.password.internal.DefaultPrivateKeyPasswordBasedEncryptorTest.runTestPBES2Conformance(DefaultPrivateKeyPasswordBasedEncryptorTest.java:141)
      	at org.xwiki.crypto.password.internal.DefaultPrivateKeyPasswordBasedEncryptorTest.pbes2ConformanceTestBlowfish(DefaultPrivateKeyPasswordBasedEncryptorTest.java:295)
      ...
      
      [ERROR] pbes2ConformanceTestDesEde3  Time elapsed: 0.049 s  <<< ERROR!
      java.io.IOException: PBE parameter parsing error: expecting the object identifier for AES cipher
      	at java.base/com.sun.crypto.provider.PBES2Parameters.parseES(PBES2Parameters.java:377)
      	at java.base/com.sun.crypto.provider.PBES2Parameters.engineInit(PBES2Parameters.java:285)
      	at java.base/java.security.AlgorithmParameters.init(AlgorithmParameters.java:312)
      	at java.base/sun.security.x509.AlgorithmId.decodeParams(AlgorithmId.java:137)
      	at java.base/sun.security.x509.AlgorithmId.<init>(AlgorithmId.java:119)
      	at java.base/sun.security.x509.AlgorithmId.parse(AlgorithmId.java:384)
      	at java.base/javax.crypto.EncryptedPrivateKeyInfo.<init>(EncryptedPrivateKeyInfo.java:98)
      	at org.xwiki.crypto.password.internal.DefaultPrivateKeyPasswordBasedEncryptorTest.runTestPBES2Conformance(DefaultPrivateKeyPasswordBasedEncryptorTest.java:141)
      	at org.xwiki.crypto.password.internal.DefaultPrivateKeyPasswordBasedEncryptorTest.pbes2ConformanceTestDesEde3(DefaultPrivateKeyPasswordBasedEncryptorTest.java:221)
      ...
      
      [ERROR] pbes2ConformanceTestDes  Time elapsed: 0.025 s  <<< ERROR!
      java.io.IOException: PBE parameter parsing error: expecting the object identifier for AES cipher
      	at java.base/com.sun.crypto.provider.PBES2Parameters.parseES(PBES2Parameters.java:377)
      	at java.base/com.sun.crypto.provider.PBES2Parameters.engineInit(PBES2Parameters.java:285)
      	at java.base/java.security.AlgorithmParameters.init(AlgorithmParameters.java:312)
      	at java.base/sun.security.x509.AlgorithmId.decodeParams(AlgorithmId.java:137)
      	at java.base/sun.security.x509.AlgorithmId.<init>(AlgorithmId.java:119)
      	at java.base/sun.security.x509.AlgorithmId.parse(AlgorithmId.java:384)
      	at java.base/javax.crypto.EncryptedPrivateKeyInfo.<init>(EncryptedPrivateKeyInfo.java:98)
      	at org.xwiki.crypto.password.internal.DefaultPrivateKeyPasswordBasedEncryptorTest.runTestPBES2Conformance(DefaultPrivateKeyPasswordBasedEncryptorTest.java:141)
      	at org.xwiki.crypto.password.internal.DefaultPrivateKeyPasswordBasedEncryptorTest.pbes2ConformanceTestDes(DefaultPrivateKeyPasswordBasedEncryptorTest.java:184)
      ...
      
      [ERROR] pbes2ConformanceTestRC2  Time elapsed: 0.042 s  <<< ERROR!
      java.io.IOException: PBE parameter parsing error: expecting the object identifier for AES cipher
      	at java.base/com.sun.crypto.provider.PBES2Parameters.parseES(PBES2Parameters.java:377)
      	at java.base/com.sun.crypto.provider.PBES2Parameters.engineInit(PBES2Parameters.java:285)
      	at java.base/java.security.AlgorithmParameters.init(AlgorithmParameters.java:312)
      	at java.base/sun.security.x509.AlgorithmId.decodeParams(AlgorithmId.java:137)
      	at java.base/sun.security.x509.AlgorithmId.<init>(AlgorithmId.java:119)
      	at java.base/sun.security.x509.AlgorithmId.parse(AlgorithmId.java:384)
      	at java.base/javax.crypto.EncryptedPrivateKeyInfo.<init>(EncryptedPrivateKeyInfo.java:98)
      	at org.xwiki.crypto.password.internal.DefaultPrivateKeyPasswordBasedEncryptorTest.runTestPBES2Conformance(DefaultPrivateKeyPasswordBasedEncryptorTest.java:141)
      	at org.xwiki.crypto.password.internal.DefaultPrivateKeyPasswordBasedEncryptorTest.pbes2ConformanceTestRC2(DefaultPrivateKeyPasswordBasedEncryptorTest.java:258)
      ...
      
      [INFO] Running org.xwiki.crypto.password.internal.kdf.factory.AmplDefaultKeyDerivationFunctionFactoryTest
      [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.107 s - in org.xwiki.crypto.password.internal.kdf.factory.AmplDefaultKeyDerivationFunctionFactoryTest
      [INFO] Running org.xwiki.crypto.password.internal.kdf.factory.DefaultKeyDerivationFunctionFactoryTest
      [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.176 s - in org.xwiki.crypto.password.internal.kdf.factory.DefaultKeyDerivationFunctionFactoryTest
      [INFO] Running org.xwiki.crypto.password.internal.kdf.factory.BcPKCS5S2KeyDerivationFunctionFactoryTest
      [INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.157 s - in org.xwiki.crypto.password.internal.kdf.factory.BcPKCS5S2KeyDerivationFunctionFactoryTest
      [INFO] Running org.xwiki.crypto.password.internal.kdf.factory.BcScryptKeyDerivationFunctionFactoryTest
      [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.375 s - in org.xwiki.crypto.password.internal.kdf.factory.BcScryptKeyDerivationFunctionFactoryTest
      [INFO] Running org.xwiki.crypto.password.internal.AmplDefaultPrivateKeyPasswordBasedEncryptorTest
      [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 s - in org.xwiki.crypto.password.internal.AmplDefaultPrivateKeyPasswordBasedEncryptorTest
      [INFO] Running org.xwiki.crypto.password.internal.pbe.factory.BcPBES2CipherFactoryTest
      [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.381 s - in org.xwiki.crypto.password.internal.pbe.factory.BcPBES2CipherFactoryTest
      [INFO] 
      [INFO] Results:
      [INFO] 
      [ERROR] Errors: 
      [ERROR]   DefaultPrivateKeyPasswordBasedEncryptorTest.pbes2ConformanceTestBlowfish:295->runTestPBES2Conformance:141 » IO
      [ERROR]   DefaultPrivateKeyPasswordBasedEncryptorTest.pbes2ConformanceTestDes:184->runTestPBES2Conformance:141 » IO
      [ERROR]   DefaultPrivateKeyPasswordBasedEncryptorTest.pbes2ConformanceTestDesEde3:221->runTestPBES2Conformance:141 » IO
      [ERROR]   DefaultPrivateKeyPasswordBasedEncryptorTest.pbes2ConformanceTestRC2:258->runTestPBES2Conformance:141 » IO
      [INFO] 
      [ERROR] Tests run: 36, Failures: 0, Errors: 4, Skipped: 0
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: