Commit 5555db1e authored by R.W.Majeed's avatar R.W.Majeed
Browse files

Use larger output buffer for decryption to prevent errors

parent b67f0323
......@@ -47,7 +47,7 @@ public class DecryptingInputStream extends InputStream {
throw new IOException("Unable to unwrap symmetric key",e);
// decrypt remaining buffer
outputBuffer = ByteBuffer.allocate(1024*8);
outputBuffer = ByteBuffer.allocate(1024*8*2);
cipher.update(buffer, outputBuffer);
// prepare buffer for writing
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment