Fix the size alignment wehne decrypting non hashed files

This commit is contained in:
Maschell 2019-04-30 14:32:34 +02:00
parent 4b9ef5da70
commit 5ccc8c1763

View File

@ -107,7 +107,7 @@ public class NUSDecryption extends AESDecryption {
ByteArrayBuffer overflow = new ByteArrayBuffer(BLOCKSIZE);
// We can only decrypt multiples of 16. So we need to align it.
long toRead = Utils.align(filesize + 15, 16);
long toRead = Utils.align(filesize, 16);
do {