Changes

Jump to navigation Jump to search
660 bytes added ,  15:20, 23 January 2017
→‎NCSD header: fixed bad reserved size and offset
Line 64: Line 64:  
|  0x118
 
|  0x118
 
|  8
 
|  8
|  Partitions crypt type  
+
|  Partitions crypt type (each byte corresponds to a partition in the partition table)
 
|-
 
|-
 
|  0x120
 
|  0x120
Line 102: Line 102:  
|  Partition ID table  
 
|  Partition ID table  
 
|-
 
|-
0x1C0
+
0x1D0
0x30
+
0x20
 
|  Reserved
 
|  Reserved
 
|-
 
|-
Line 136: Line 136:  
|}
 
|}
    +
=== NCSD Signature ===
 +
The RSA pubk used for gamecard NCSD is stored in [[Memory_layout|ITCM]]. The separate pubk used for NAND NCSD is stored in Process9 .(ro)data instead of ITCM.
    
=== Partition Flags ===
 
=== Partition Flags ===
Line 197: Line 199:  
|-
 
|-
 
|  0x208
 
|  0x208
0xDF8
+
0x108
 
|  Reserved1
 
|  Reserved1
 
|-
 
|-
0x1000
+
0x310
8
+
2
Media ID (same as first NCCH partitionId)
+
Title version
 +
|-
 +
|  0x312
 +
|  2
 +
|  Card revision
 
|-
 
|-
0x1008
+
0x208
8
+
0xCEE
 
|  Reserved2
 
|  Reserved2
 +
|-
 +
|  0x1000
 +
|  0x10
 +
|  Card seed keyY (first u64 is Media ID (same as first NCCH partitionId))
 
|-
 
|-
 
|  0x1010
 
|  0x1010
0x30
+
0x10
Initial Data
+
Encrypted card seed (AES-CCM, keyslot 0x3B for retail cards, see [[CTRCARD_Registers|CTRCARD_SECSEED]])
 
|-
 
|-
0x1040
+
0x1020
0xC0
+
0x10
Reserved
+
Card seed AES-MAC
 +
|-
 +
|  0x1030
 +
|  0xC
 +
|  Card seed nonce
 +
|-
 +
|  0x103C
 +
|  0xC4
 +
|  Reserved3
 
|-
 
|-
 
|  0x1100
 
|  0x1100
Line 241: Line 259:  
|}
 
|}
   −
Note that a particular flashcard vendor puts what many refer to as "private headers" here in place of actual development card information. This header is constituted by a cartridge-unique Id obtained from [[Process_Services_PXI|pxi:ps9::GetRomId]] and potentially other cartridge-specific data.
+
Note that a particular flashcard vendor puts what many refer to as "private headers" here in place of actual development card information. This header is constituted by a cartridge-unique Id obtained from [[Process_Services_PXI|pxi:ps9::GetRomId]] and the title-unique cart ID (identical for all carts of the same title; can be retrieved using the NTR gamecard protocol command 0x90 or through the CTR protocol commands 0x90 or 0xA2).
    
== Tools ==
 
== Tools ==
14

edits

Navigation menu