Flash Filesystem: Difference between revisions
m →NAND structure: nicer colors in table |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
The Nintendo 3DS has | The Nintendo 3DS has several differently sized NAND flash chips. Due to the NCSD header, the actual used size of the Old3DS NAND is 0x3AF00000-bytes(943MiB). On New3DS, the actual NAND size and the total size used by the partitions, is 0x4D800000-bytes(1240MiB). | ||
===Physical Size=== | |||
{| class="wikitable" border="1" | |||
! Device | |||
! Manufacturer | |||
! Size | |||
|- | |||
| 2DS | |||
| Toshiba | |||
| 0x3AF00000 | |||
|- | |||
| 2DS | |||
| Toshiba | |||
| 0x76000000 | |||
|- | |||
| 2DS | |||
| Samsung | |||
| 0x3BA00000 | |||
|- | |||
| 2DS | |||
| Samsung | |||
| 0x4D800000 | |||
|- | |||
| Old3DS | |||
| Toshiba | |||
| 0x3AF00000 | |||
|- | |||
| Old3DS | |||
| Samsung | |||
| 0x3BA00000 | |||
|- | |||
| New3DS | |||
| Toshiba | |||
| 0x76000000 | |||
|- | |||
| New3DS | |||
| Samsung | |||
| 0x4D800000 | |||
|- | |||
| New3DS | |||
| Samsung | |||
| 0x74800000 | |||
|} | |||
===Format=== | ===Format=== | ||
Line 12: | Line 55: | ||
===Encryption=== | ===Encryption=== | ||
The NAND file system is encrypted using [[AES|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 each partition is determined by the NCSD partition FS type and encryption 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|AES-CTR]]. The TWL regions of NAND use the TWL NAND [[AES|keyslot]], while the nonce is the sha1 hash of the NAND CID, byte reversed. The CTR regions use the CTR NAND [[AES|keyslots]], while the nonce is the sha256 hash of the NAND CID. The keyslot used for each partition is determined by the NCSD partition FS type and encryption 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 New3DS CTRNAND partition uses a [[AES|keyslot]] separate from the Old3DS one. | The New3DS CTRNAND partition uses a [[AES|keyslot]] separate from the Old3DS one. |