Difference between revisions of "DSiWare Exports"

From 3dbrew
Jump to navigation Jump to search
Line 35: Line 35:
 
|-
 
|-
 
| 0x4020
 
| 0x4020
| 0xA0
+
| 0xC0
 
| Header section
 
| Header section
 
| AES-CTR
 
| AES-CTR
 
|-
 
|-
| 0x40C0
+
| 0x40E0
| 0x400
+
| 0x420
 
| Footer section
 
| Footer section
 
| AES-CBC
 
| AES-CBC
 
|-
 
|-
| 0x44C0
+
| 0x4500
 
|  
 
|  
 
| Data for the 4 content sections are stored here.
 
| Data for the 4 content sections are stored here.
 
| AES-CTR
 
| AES-CTR
 
|}
 
|}

Revision as of 15:46, 22 April 2013

The DSiWare exported from a 3DS is located at "sdmc:/Nintendo 3DS/<ID0>/<ID1>/Nintendo DSiWare". Filenames are same format as DSi: "<TitleID-Low>.bin". The below sizes include the 0x20-byte block metadata.

DSiWare exported from 3DS use keyslots initialized by movable.sed.

Block Metadata

Offset Size Description
0x0 0x10 AES MAC
0x10 0x10 CTR for AES-CTR / IV for AES-CBC, generated by the RNG.

Each section begins with the actual encrypted data, followed by this block metadata.

File Structure

Offset Size Description Algorithm Type
0x0 0x4020 Banner section AES-CBC
0x4020 0xC0 Header section AES-CTR
0x40E0 0x420 Footer section AES-CBC
0x4500 Data for the 4 content sections are stored here. AES-CTR