Force an 0x10 alignment of the offset when trying to decrypt a file

This commit is contained in:
Maschell 2019-04-30 14:26:02 +02:00
parent fc3a604cd4
commit da196e845f

View File

@ -84,6 +84,9 @@ public class FSTDataProviderNUSTitle implements FSTDataProvider, HasNUSTitle {
outputStream.close();
return false;
}
if (offset % 16 != 0) {
throw new IOException("The offset for decryption need to be aligned to 16");
}
Content c = title.getTMD().getContentByIndex(entry.getContentIndex());