diff --git a/src/de/mas/wiiu/jnus/utils/cryptography/NUSDecryption.java b/src/de/mas/wiiu/jnus/utils/cryptography/NUSDecryption.java index c8b46d2..2c98878 100644 --- a/src/de/mas/wiiu/jnus/utils/cryptography/NUSDecryption.java +++ b/src/de/mas/wiiu/jnus/utils/cryptography/NUSDecryption.java @@ -212,6 +212,10 @@ public class NUSDecryption extends AESDecryption { inBlockBuffer = StreamUtils.getChunkFromStream(inputStream, encryptedBlockBuffer, overflow, BLOCKSIZE); if (writeSize > filesize) writeSize = filesize; + if (inBlockBuffer != BLOCKSIZE) { + throw new IOException("wasn't able to read " + BLOCKSIZE); + } + byte[] output; try { output = decryptFileChunkHash(encryptedBlockBuffer, (int) block, contentIndex, h3Hash);