Line 198:
Line 198:
The contents in the APP are referenced by the TMD content table. The APP 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 (decrypt it 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.
−
−
To get the title key, you need to decrypt it from the ticket.
=== Trailer ===
=== Trailer ===
The "trailer" is a copy of the first file in the APP.
The "trailer" is a copy of the first file in the APP.