Ticket: Difference between revisions

3dsguy (talk | contribs)
3dsguy (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:File formats]]
[[Category:File formats]]
Tickets are a format used to store an encrypted titlekey (using 128-Bit AES-CBC). This format seems to be identical to DSi/Wii tickets.  
Tickets are a format used to store an encrypted titlekey (using 128-Bit AES-CBC). With 3DS, the Ticket format was updated (now v1) from Wii/DSi format (v0).


== Structure ==
== Structure ==
Line 45: Line 45:
| 0x40||0x3C||ECC PublicKey
| 0x40||0x3C||ECC PublicKey
|-
|-
| 0x7C||0x1||Version
| 0x7C||0x1||Version (For 3DS this is always 1)
|-
|-
| 0x7D||0x1||CaCrlVersion
| 0x7D||0x1||CaCrlVersion
Line 57: Line 57:
| 0x90||0x8||TicketID
| 0x90||0x8||TicketID
|-
|-
| 0x98||0x4||Ticket consoleID
| 0x98||0x4||ConsoleID
|-
|-
| 0x9C||0x8||TitleID
| 0x9C||0x8||TitleID
|-
|-
| 0xA4||0x2||Systitle Access Mask (TWL Only. Clear for CTR)
| 0xA4||0x2||Reserved
|-
|-
| 0xA6||0x2||Ticket title version
| 0xA6||0x2||Ticket title version
|-
|-
| 0xA8||0x4||AccessTitleId - Indicates which titles can access this title (TWL Only. Clear for CTR)
| 0xA8||0x8||Reserved
|-
| 0xAC||0x4||AccessTitleMask (Mask for AccessTitleId) (TWL Only. Clear for CTR)
|-
|-
| 0xB0||0x1||License Type
| 0xB0||0x1||License Type
Line 81: Line 79:
| 0xE1||0x1||Audit
| 0xE1||0x1||Audit
|-
|-
| 0xE2||0x40||Content Index (TWL Only. Clear for CTR)
| 0xE2||0x42||Reserved
|-
| 0x122||0x2||Reserved
|-
|-
| 0x124||0x40||Limits
| 0x124||0x40||Limits
|-
|-
| 0x164||0xAC||Content Index (CTR Only)
| 0x164||0xAC||Content Index
|}
|}
* For v0 of the format, see [Ticket:Talk||here]]


* The Ticket Title Version is generally the same as the title version stored in the [[TMD|Title Metadata]]. Although it doesn't have to match the TMD version to be valid.
* The Ticket Title Version is generally the same as the title version stored in the [[TMD|Title Metadata]]. Although it doesn't have to match the TMD version to be valid.