Skip to content

Commit 7ac56ca

Browse files
committed
fixed method permissions.
1 parent c6d4782 commit 7ac56ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/java/org/bouncycastle/util/test/SimpleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected void isTrue(
3131
}
3232
}
3333

34-
protected void isTrue(
34+
public void isTrue(
3535
String message,
3636
boolean value)
3737
{

core/src/test/java/org/bouncycastle/crypto/test/CipherTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
import org.bouncycastle.crypto.BlockCipher;
66
import org.bouncycastle.crypto.BufferedBlockCipher;
7-
import org.bouncycastle.crypto.DefaultBufferedBlockCipher;
87
import org.bouncycastle.crypto.CipherKeyGenerator;
98
import org.bouncycastle.crypto.DataLengthException;
9+
import org.bouncycastle.crypto.DefaultBufferedBlockCipher;
1010
import org.bouncycastle.crypto.InvalidCipherTextException;
1111
import org.bouncycastle.crypto.KeyGenerationParameters;
1212
import org.bouncycastle.crypto.modes.AEADCipher;
@@ -330,7 +330,7 @@ static void checkAEADParemeter(SimpleTest test, int keySize, int ivSize, final i
330330
byte[] ciphertext2 = new byte[cipher.getOutputSize(plaintext.length)];
331331
len = cipher.processBytes(plaintext, 0, plaintext.length, ciphertext2, 0);
332332
len += cipher.doFinal(ciphertext2, len);
333-
test.isTrue(test.areEqual(ciphertext1, ciphertext2));
333+
test.isTrue("cipher text check", Arrays.areEqual(ciphertext1, ciphertext2));
334334

335335
test.testException("Invalid value for MAC size: ", "IllegalArgumentException", new TestExceptionOperation()
336336
{

0 commit comments

Comments
 (0)