I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 31debe6b authored by str4d's avatar str4d
Browse files

CryptixRijndael_Algorithm._BLOCK_SIZE is private, so specify value directly

parent 40d15072
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ public class AESInputStream extends FilterInputStream { ...@@ -53,7 +53,7 @@ public class AESInputStream extends FilterInputStream {
/** how many bytes are available for reading without decrypt? */ /** how many bytes are available for reading without decrypt? */
private int _decryptedSize; 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) { public AESInputStream(I2PAppContext context, InputStream source, SessionKey key, byte[] iv) {
super(source); super(source);
......
...@@ -48,7 +48,7 @@ public class AESOutputStream extends FilterOutputStream { ...@@ -48,7 +48,7 @@ public class AESOutputStream extends FilterOutputStream {
public final static float EXPANSION_FACTOR = 1.0625f; // 6% overhead w/ the padding 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; private final static int MAX_BUF = 256;
public AESOutputStream(I2PAppContext context, OutputStream source, SessionKey key, byte[] iv) { public AESOutputStream(I2PAppContext context, OutputStream source, SessionKey key, byte[] iv) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment