From c3f4f96344f33bfbc351a352d50fbd0b145bbc28 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 26 Apr 2019 10:55:13 +0200 Subject: [PATCH] Fix the partial argument for the decryption --- .../mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java b/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java index efbeb0c..3b98f50 100644 --- a/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java +++ b/src/de/mas/wiiu/jnus/implementations/FSTDataProviderNUSTitle.java @@ -129,7 +129,7 @@ public class FSTDataProviderNUSTitle implements FSTDataProvider, HasNUSTitle { if (c.isHashed()) { h3HashedOpt = dataProvider.getContentH3Hash(c); } - return nusdecryption.decryptStreams(in, outputStream, payloadOffset, fileSize, c, h3HashedOpt, fileSize == entry.getFileSize()); + return nusdecryption.decryptStreams(in, outputStream, payloadOffset, size, c, h3HashedOpt, size != entry.getFileSize()); } catch (CheckSumWrongException e) { if (c.isUNKNWNFlag1Set()) { log.info("Hash doesn't match. But file is optional. Don't worry.");