Using the titleid from the tmd as IV for the key decryption, not the given one

,
This commit is contained in:
Maschell 2016-10-31 17:01:53 +01:00
parent f03719487f
commit 8959bced34

View File

@ -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.");
}