From 31debe6bbfc2f0f4f43a59d1cce891a299ac296e Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Mon, 5 Nov 2012 19:53:00 +0000 Subject: [PATCH] CryptixRijndael_Algorithm._BLOCK_SIZE is private, so specify value directly --- core/java/test/junit/net/i2p/crypto/AESInputStream.java | 2 +- core/java/test/junit/net/i2p/crypto/AESOutputStream.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/test/junit/net/i2p/crypto/AESInputStream.java b/core/java/test/junit/net/i2p/crypto/AESInputStream.java index 58325649e9..09446b2222 100644 --- a/core/java/test/junit/net/i2p/crypto/AESInputStream.java +++ b/core/java/test/junit/net/i2p/crypto/AESInputStream.java @@ -53,7 +53,7 @@ public class AESInputStream extends FilterInputStream { /** how many bytes are available for reading without decrypt? */ private int _decryptedSize; - private final static int BLOCK_SIZE = CryptixRijndael_Algorithm._BLOCK_SIZE; + private final static int BLOCK_SIZE = 16; public AESInputStream(I2PAppContext context, InputStream source, SessionKey key, byte[] iv) { super(source); diff --git a/core/java/test/junit/net/i2p/crypto/AESOutputStream.java b/core/java/test/junit/net/i2p/crypto/AESOutputStream.java index a8a6395624..c754813e99 100644 --- a/core/java/test/junit/net/i2p/crypto/AESOutputStream.java +++ b/core/java/test/junit/net/i2p/crypto/AESOutputStream.java @@ -48,7 +48,7 @@ public class AESOutputStream extends FilterOutputStream { public final static float EXPANSION_FACTOR = 1.0625f; // 6% overhead w/ the padding - private final static int BLOCK_SIZE = CryptixRijndael_Algorithm._BLOCK_SIZE; + private final static int BLOCK_SIZE = 16; private final static int MAX_BUF = 256; public AESOutputStream(I2PAppContext context, OutputStream source, SessionKey key, byte[] iv) { -- GitLab