Line 196:
Line 196:
The "APP" block in the WAD is a block of encrypted data that contains the info that is actually used by the channel.
The "APP" block in the WAD is a block of encrypted data that contains the info that is actually used by the channel.
−
The contents in the APP are referenced by the TMD. The file is aligned to 64 bytes after each file.
+
The contents in the APP are referenced by the TMD content table. The APP is aligned to 64 bytes after each file.
The files are encrypted using the title key (from the ticket) and the file index (in the TMD, the 2 first bytes of the IV are the index, the last 14 bytes are zeroes) as IV.
The files are encrypted using the title key (from the ticket) and the file index (in the TMD, the 2 first bytes of the IV are the index, the last 14 bytes are zeroes) as IV.