CryptixRijndael_Algorithm._BLOCK_SIZE is private, so specify value directly

This commit is contained in:
str4d
2012-11-05 19:53:00 +00:00
parent 40d1507237
commit 31debe6bbf
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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) {