From 5ccc8c1763f8e7636ae1c365f5848457da1706cd Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 30 Apr 2019 14:32:34 +0200 Subject: [PATCH] Fix the size alignment wehne decrypting non hashed files --- src/de/mas/wiiu/jnus/utils/cryptography/NUSDecryption.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/mas/wiiu/jnus/utils/cryptography/NUSDecryption.java b/src/de/mas/wiiu/jnus/utils/cryptography/NUSDecryption.java index 4a048de..b485989 100644 --- a/src/de/mas/wiiu/jnus/utils/cryptography/NUSDecryption.java +++ b/src/de/mas/wiiu/jnus/utils/cryptography/NUSDecryption.java @@ -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 {