Ticket: Difference between revisions

3dsguy (talk | contribs)
Created page with "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. == Structure =..."
 
3dsguy (talk | contribs)
No edit summary
Line 59: Line 59:
| 0xA4||0x2||Unknown
| 0xA4||0x2||Unknown
|-
|-
| 0xA6||0x2||Ticket title version, this title version is also stored in the [[TMD]].
| 0xA6||0x2||Ticket title version, this generally the same as the title version stored in the [[TMD|Title Metadata]].
|-
|-
| 0xA8||0x8||Unused
| 0xA8||0x8||Unused
Line 73: Line 73:
| 0xE2||0x82||Unused
| 0xE2||0x82||Unused
|-
|-
| 0x164||0x30||Unknown
| 0x164||0xAC||Content Index Setup (Complex)
|-
| 0x194||0x7C||Unused
|}
|}
The Signature Type is the same const as that in [[TMD]].


The titlekey is decrypted by using the [[AES]] engine with the ticket common-key keyslot where the keyY is one of 6 keyYs loaded via the keyY index stored in the ticket. AES-CBC mode is used where the IV is the big-endian titleID. Note that on a retail unit index0 is a retail keyY, while on a dev-unit index0 is the dev common-key which is a normal-key.(On retail for these keyYs, the hardware key-scrambler is used)
The titlekey is decrypted by using the [[AES]] engine with the ticket common-key keyslot where the keyY is one of 6 keyYs loaded via the keyY index stored in the ticket. AES-CBC mode is used where the IV is the big-endian titleID. Note that on a retail unit index0 is a retail keyY, while on a dev-unit index0 is the dev common-key which is a normal-key.(On retail for these keyYs, the hardware key-scrambler is used)
Line 109: Line 105:


== Some facts==
== Some facts==
* '''CommonETicket''' (for short, '''cetk''') is the name given to tickets for titles which aren't purchasable, like system titles.
* '''CommonETicket''' (for short, '''cetk''') is the name given to tickets for titles which available on the [[EShop|eShop]], like [[Title list#CTR System Titles|system titles]].


* '''CETK''' can be fetched through HTTP using the link to default update server, using the title's [[TMD]] URL where "cetk" is used instead of "tmd" for the URL. The 3DS NIM module retrieves system tickets via SOAP request ''GetCommonETicket''.
* '''CETK''' can be fetched through HTTP using the link to default update server, using the title's [[TMD]] URL where "cetk" is used instead of "tmd" for the URL. The 3DS NIM module retrieves system tickets via SOAP request ''GetCommonETicket''.