Changes

291 bytes added ,  07:54, 31 December 2013
no edit summary
Line 6: Line 6:  
===Encryption===
 
===Encryption===
   −
The NAND file system is encrypted using AES-CTR. The TWL regions of NAND use the TWL NAND [[AES|keyslot]], while the CTR regions use the CTR NAND [[AES|keyslots]]. The keyslot used for CTR-NAND partitions is determined by the NCSD partition FS type. The TWL/CTR NAND regions are specified by the NCSD header. The first 0x0B100000 bytes of NAND is encrypted with the TWL keyslot, however before 0x00012E00 only the MBR partition table is encrypted with the TWL keyslot. That region contains the TWL partitions listed below.
+
The NAND file system is encrypted using AES-CTR. The TWL regions of NAND use the TWL NAND [[AES|keyslot]], while the CTR regions use the CTR NAND [[AES|keyslots]]. The keyslot used for CTR-NAND partitions is determined by the NCSD partition FS type. The TWL/CTR NAND regions are specified by the NCSD header. The NCSD partition encryption flag for each partition indicates whether the TWL keyslot or the CTR keyslots are used for encryption: 0x01=TWL, 0x02=CTR. The first 0x0B100000 bytes of NAND is encrypted with the TWL keyslot, however before 0x00012E00 only the MBR partition table is encrypted with the TWL keyslot. That region contains the TWL partitions listed below.
    
===NAND structure===
 
===NAND structure===
Line 15: Line 15:  
!  Size
 
!  Size
 
!  NCSD partition FS type
 
!  NCSD partition FS type
 +
!  NCSD partition index
 
!  Description
 
!  Description
 
|-
 
|-
Line 21: Line 22:  
|  0x200
 
|  0x200
 
|   
 
|   
 +
|
 
|  NCSD header, this contains the offsets/sizes of the below CTR-NAND partitions. This block also contains the TWL-NAND MBR partition table.
 
|  NCSD header, this contains the offsets/sizes of the below CTR-NAND partitions. This block also contains the TWL-NAND MBR partition table.
 +
|-
 +
 +
|  0x00000000
 +
|  0x0B100000
 +
|  0x1
 +
|  0x00
 +
|  TWL NAND region
 
|-
 
|-
 
|  twln
 
|  twln
Line 27: Line 36:  
|  0x08FB5200
 
|  0x08FB5200
 
|   
 
|   
 +
|
 
|  TWL-NAND FAT16 File System. (DSi)
 
|  TWL-NAND FAT16 File System. (DSi)
 
|-
 
|-
Line 33: Line 43:  
|  0x020B6600
 
|  0x020B6600
 
|   
 
|   
 +
|
 
|  TWL-NAND PHOTO FAT12 File System. (DSi)
 
|  TWL-NAND PHOTO FAT12 File System. (DSi)
 
|-
 
|-
Line 39: Line 50:  
|  0x00030000
 
|  0x00030000
 
|  0x04
 
|  0x04
 +
|  0x01
 
|  By default this partition is empty(only contains 0x00/0xFF bytes since it was never written to), when AGB_FIRM was never launched. This contains the AGB_FIRM GBA savegame.
 
|  By default this partition is empty(only contains 0x00/0xFF bytes since it was never written to), when AGB_FIRM was never launched. This contains the AGB_FIRM GBA savegame.
 
|-
 
|-
Line 45: Line 57:  
|  0x00400000
 
|  0x00400000
 
|  0x03
 
|  0x03
 +
|  0x02
 
|  [[FIRM|Firmware]] partition.
 
|  [[FIRM|Firmware]] partition.
 
|-
 
|-
Line 50: Line 63:  
|  0x0B530000
 
|  0x0B530000
 
|  0x00400000
 
|  0x00400000
 +
|  0x03
 
|  0x03
 
|  0x03
 
|  [[FIRM|Firmware]] partition.(Backup partition, same as above)
 
|  [[FIRM|Firmware]] partition.(Backup partition, same as above)
Line 57: Line 71:  
|  0x2F5D0000
 
|  0x2F5D0000
 
|  0x01
 
|  0x01
 +
|  0x04
 
|  CTR-NAND partition. (3DS)
 
|  CTR-NAND partition. (3DS)
 
|-
 
|-
Line 62: Line 77:  
|  0x0B95CA00
 
|  0x0B95CA00
 
|  0x2F3E3600
 
|  0x2F3E3600
 +
 
|   
 
|   
 
|  CTR-NAND FAT16 File System.
 
|  CTR-NAND FAT16 File System.