mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-05 07:45:11 +01:00
Throw on IOException if the FST length is not aligned to 16 before decrypting.
This commit is contained in:
parent
b836705e92
commit
de7909eb34
@ -72,6 +72,9 @@ public class NUSTitleLoader {
|
||||
|
||||
if (fstContent.isEncrypted()) {
|
||||
AESDecryption aesDecryption = new AESDecryption(ticket.getDecryptedKey(), new byte[0x10]);
|
||||
if (fstBytes.length % 0x10 != 0) {
|
||||
throw new IOException("FST length is not align to 16");
|
||||
}
|
||||
fstBytes = aesDecryption.decrypt(fstBytes);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user