From 8959bced340247c6c8e618ad386dc5921316e44a Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 31 Oct 2016 17:01:53 +0100 Subject: [PATCH] Using the titleid from the tmd as IV for the key decryption, not the given one , --- src/de/mas/jnustool/NUSTitle.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/de/mas/jnustool/NUSTitle.java b/src/de/mas/jnustool/NUSTitle.java index 2ffbff1..0af06fe 100644 --- a/src/de/mas/jnustool/NUSTitle.java +++ b/src/de/mas/jnustool/NUSTitle.java @@ -104,16 +104,17 @@ public class NUSTitle { Logger.log("Downloading of missing files is not enabled. Exiting"); System.exit(2); } - } + } + if(key != null){ Logger.log("Using ticket from parameter."); - ticket = new TIK(key,titleId); + ticket = new TIK(key,tmd.titleID); }else{ if(Settings.useCachedFiles){ File f = new File(getContentPath() + "/" + "title.tik"); if(f.exists()){ Logger.log("Using cached cetk."); - ticket = new TIK(f,titleId); + ticket = new TIK(f,tmd.titleID); }else{ Logger.log("No cached ticket found."); }