Changes

110 bytes added ,  19:11, 27 June 2008
Line 55: Line 55:  
|}
 
|}
   −
The contents are stored in the WAD in the same order as in the TMD. Each block (header, contents) is aligned to 0x40 bytes.
+
The sections are stored in the WAD in the same order that in the header. Each block (header, sections) is aligned to 0x40 bytes.
 +
 
 +
The contents are stored in the WAD in the same order as in the TMD. Each file is aligned to 0x40 bytes.
    
The contents (Data section) are encrypted using the title key (decrypt it from the [[Ticket|ticket]]) and the content index (in the TMD, the 2 first bytes of the IV are the index, the last 14 bytes are zeroes) as IV.  The SHA1 of the decrypted content must match the hash that is stored in the TMD.
 
The contents (Data section) are encrypted using the title key (decrypt it from the [[Ticket|ticket]]) and the content index (in the TMD, the 2 first bytes of the IV are the index, the last 14 bytes are zeroes) as IV.  The SHA1 of the decrypted content must match the hash that is stored in the TMD.
6

edits