diff --git a/core/src/main/java/org/bouncycastle/util/test/SimpleTest.java b/core/src/main/java/org/bouncycastle/util/test/SimpleTest.java index a0afea3fef..53fc71bf17 100644 --- a/core/src/main/java/org/bouncycastle/util/test/SimpleTest.java +++ b/core/src/main/java/org/bouncycastle/util/test/SimpleTest.java @@ -31,7 +31,7 @@ protected void isTrue( } } - protected void isTrue( + public void isTrue( String message, boolean value) { diff --git a/core/src/test/java/org/bouncycastle/crypto/test/CipherTest.java b/core/src/test/java/org/bouncycastle/crypto/test/CipherTest.java index 63126f4f18..3bd7eb08b8 100644 --- a/core/src/test/java/org/bouncycastle/crypto/test/CipherTest.java +++ b/core/src/test/java/org/bouncycastle/crypto/test/CipherTest.java @@ -4,9 +4,9 @@ import org.bouncycastle.crypto.BlockCipher; import org.bouncycastle.crypto.BufferedBlockCipher; -import org.bouncycastle.crypto.DefaultBufferedBlockCipher; import org.bouncycastle.crypto.CipherKeyGenerator; import org.bouncycastle.crypto.DataLengthException; +import org.bouncycastle.crypto.DefaultBufferedBlockCipher; import org.bouncycastle.crypto.InvalidCipherTextException; import org.bouncycastle.crypto.KeyGenerationParameters; import org.bouncycastle.crypto.modes.AEADCipher; @@ -330,7 +330,7 @@ static void checkAEADParemeter(SimpleTest test, int keySize, int ivSize, final i byte[] ciphertext2 = new byte[cipher.getOutputSize(plaintext.length)]; len = cipher.processBytes(plaintext, 0, plaintext.length, ciphertext2, 0); len += cipher.doFinal(ciphertext2, len); - test.isTrue(test.areEqual(ciphertext1, ciphertext2)); + test.isTrue("cipher text check", Arrays.areEqual(ciphertext1, ciphertext2)); test.testException("Invalid value for MAC size: ", "IllegalArgumentException", new TestExceptionOperation() {