Skip to content

Commit

Permalink
fixed method permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Jan 11, 2025
1 parent c6d4782 commit 7ac56ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected void isTrue(
}
}

protected void isTrue(
public void isTrue(
String message,
boolean value)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
{
Expand Down

0 comments on commit 7ac56ca

Please sign in to comment.