Changes

1,338 bytes added ,  16 April
no edit summary
Line 17: Line 17:  
|-
 
|-
 
| 0x1200
 
| 0x1200
| 0x6E00
+
| 0x200
 +
| [11.0.0+] [[#NewCardHeader]]
 +
|-
 +
| 0x1400
 +
| 0x400
 +
| [11.0.0+] [[#NewCardHeaderCertArea]]
 +
|-
 +
| 0x1800
 +
| 0x6800
 
| ReservedArea
 
| ReservedArea
 
|-
 
|-
Line 76: Line 84:  
| 0x8
 
| 0x8
 
| 0x8
 
| 0x8
| Empty
+
| Reserved
 
|-
 
|-
 
| 0x10
 
| 0x10
Line 130: Line 138:  
| 0x100
 
| 0x100
 
| 0x4
 
| 0x4
| MagicCode ("HEAD")
+
| Magic ("HEAD")
 
|-
 
|-
 
| 0x104
 
| 0x104
Line 165: Line 173:  
|-
 
|-
 
| 0x11C
 
| 0x11C
| 0x4
+
| 0x1
 +
| Reserved
 +
|-
 +
| 0x11D
 +
| 0x1
 +
| [18.0.0+] [[#Flags2]] ([1.0.0-17.0.1] Reserved)
 +
|-
 +
| 0x11E
 +
| 0x2
 
| Reserved
 
| Reserved
 
|-
 
|-
Line 190: Line 206:  
| 0x180
 
| 0x180
 
| 0x4
 
| 0x4
| SelSec (0x01 = T1, 0x02 = T2)
+
| [[#SelSec]]
 
|-
 
|-
 
| 0x184
 
| 0x184
Line 206: Line 222:  
| 0x190
 
| 0x190
 
| 0x70
 
| 0x70
| [[#CardInfo]]
+
| [[#CardHeaderEncryptedData]]
 +
|}
 +
 
 +
=== RomSize ===
 +
[[Filesystem_services|FS]] retrieves this data as [[Filesystem_services#GameCardSize|GameCardSize]].
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Value
 +
! Description
 +
|-
 +
| 0xFA
 +
| 1GB
 +
|-
 +
| 0xF8
 +
| 2GB
 +
|-
 +
| 0xF0
 +
| 4GB
 +
|-
 +
| 0xE0
 +
| 8GB
 +
|-
 +
| 0xE1
 +
| 16GB
 +
|-
 +
| 0xE2
 +
| 32GB
 +
|}
 +
 
 +
=== Flags ===
 +
[[Filesystem_services|FS]] retrieves this data as [[Filesystem_services#GameCardAttribute|GameCardAttribute]].
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Bits
 +
! Description
 +
|-
 +
| 0
 +
| AutoBoot
 +
|-
 +
| 1
 +
| HistoryErase
 +
|-
 +
| 2
 +
| [4.0.0+] RepairTool
 +
|-
 +
| 3
 +
| [9.0.0+] DifferentRegionCupToTerraDevice
 +
|-
 +
| 4
 +
| [9.0.0+] DifferentRegionCupToGlobalDevice
 +
|-
 +
| 7
 +
| [11.0.0+] HasNewCardHeader
 +
|}
 +
 
 +
=== Flags2 ===
 +
[[Filesystem_services|FS]] retrieves this data as [[Filesystem_services#GameCardAttribute2|GameCardAttribute2]].
 +
 
 +
=== SelSec ===
 +
{| class="wikitable" border="1"
 +
|-
 +
! Value
 +
! Description
 +
|-
 +
| 1
 +
| T1
 +
|-
 +
| 2
 +
| T2
 
|}
 
|}
   −
=== CardInfo ===
+
=== CardHeaderEncryptedData ===
 
This region is stored encrypted (AES-128-CBC).
 
This region is stored encrypted (AES-128-CBC).
   Line 256: Line 342:  
| 0x25
 
| 0x25
 
| 0x3
 
| 0x3
| Empty
+
| Reserved
 
|-
 
|-
 
| 0x28
 
| 0x28
Line 268: Line 354:  
| 0x38
 
| 0x38
 
| 0x38
 
| 0x38
| Empty
+
| Reserved
 
|}
 
|}
   Line 322: Line 408:  
|}
 
|}
   −
=== RomSize ===
+
== NewCardHeader ==
[[Filesystem_services|FS]] retrieves this data as [[Filesystem_services#GameCardSize|GameCardSize]].
  −
 
   
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
! Value
+
! Offset
 +
! Size
 
! Description
 
! Description
 
|-
 
|-
| 0xFA
+
| 0x0
| 1GB
+
| 0x100
 +
| RSA-2048 PKCS #1 signature over the data from 0x100 to 0x200
 +
|-
 +
| 0x100
 +
| 0x90
 +
|  
 
|-
 
|-
| 0xF8
+
| 0x190
| 2GB
+
| 0x70
 +
| [[#NewCardHeaderEncryptedData]]
 +
|}
 +
 
 +
=== NewCardHeaderEncryptedData ===
 +
This region is stored encrypted (AES-128-CBC).
 +
 
 +
{| class="wikitable" border="1"
 
|-
 
|-
| 0xF0
+
! Offset
| 4GB
+
! Size
 +
! Description
 
|-
 
|-
| 0xE0
+
| 0x0
| 8GB
+
| 0x40
 +
|  
 
|-
 
|-
| 0xE1
+
| 0x40
| 16GB
+
| 0x20
 +
| SHA-256 hash of the [[#CardHeader]]
 
|-
 
|-
| 0xE2
+
| 0x60
| 32GB
+
| 0x10
 +
| Reserved
 
|}
 
|}
   −
=== Flags ===
+
== NewCardHeaderCertArea ==
[[Filesystem_services|FS]] retrieves this data as [[Filesystem_services#GameCardAttribute|GameCardAttribute]].
  −
 
   
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
! Bits
+
! Offset
 +
! Size
 
! Description
 
! Description
 
|-
 
|-
| 0
+
| 0x0
| AutoBoot
+
| 0x100
 +
| RSA-2048 PKCS #1 signature over the data from 0x100 to 0x300
 
|-
 
|-
| 1
+
| 0x100
| HistoryErase
+
| 0x30
 +
|  
 
|-
 
|-
| 2
+
| 0x130
| [4.0.0+] RepairTool
+
| 0x100
 +
| [[#NewCardHeader]] modulus
 
|-
 
|-
| 3
+
| 0x230
| [9.0.0+] DifferentRegionCupToTerraDevice
+
| 0x4
 +
| [[#NewCardHeader]] exponent
 
|-
 
|-
| 4
+
| 0x234
| [9.0.0+] DifferentRegionCupToGlobalDevice
+
| 0x1CC
 +
|  
 
|}
 
|}
   Line 390: Line 495:  
| 0x100
 
| 0x100
 
| 0x4
 
| 0x4
| MagicCode ("CERT")
+
| Magic ("CERT")
 
|-
 
|-
 
| 0x104
 
| 0x104
Line 406: Line 511:  
| 0x110
 
| 0x110
 
| 0x10
 
| 0x10
| DeviceId
+
| T1CardDeviceId
 
|-
 
|-
 
| 0x120
 
| 0x120
Line 413: Line 518:  
|-
 
|-
 
| 0x130
 
| 0x130
| 0xD0
+
| 0x10
| Data (encrypted)
+
| HwKey (encrypted)
 +
|-
 +
| 0x140
 +
| 0xC0
 +
| Reserved (encrypted)
 
|-
 
|-
 
| 0x200
 
| 0x200
Line 507: Line 616:  
| 0x0
 
| 0x0
 
| 0x4
 
| 0x4
| MagicCode ("HFS0")
+
| Magic ("HFS0")
 
|-
 
|-
 
| 0x4
 
| 0x4