Wii Ticket For

Tickets are found in many encrypted files used by the Wii (e.g. WAD Files or Wiidiscs). They contain the encrypted AES 'title key' and the Title ID of the data and are signed by a certificate from a certificate chain (which usually is the same for all titles and stored somewhere on the NAND).So far only tickets with RSA-2048 signatures have been seen. (Discs will only work with those signatures because the size of partition ticket is always 0x2a4)

Icantek ip installer. How to set up Amazon Instant Video on the Nintendo Wii. Amazon Instant Video is now available for Nintendo Wii console users. We'll show you how to set up the new app on your Wii.

File structure

StartEndLengthDescription
0x00000x00030x04Signature type (always 0x10001 for RSA-2048)
0x00040x01030x100Signature by a certificate's key
0x01040x013F0x3CPadding (Always 0 - everything after this field is covered by the above signature)
0x01400x017F0x40Signature issuer
0x01800x01BB0x3CECDH data, used to generate one-time key during install of console specific titles
0x01BC0x01BE0x03Unused/Padding
0x01BF0x01CE0x10Encrypted title key
0x01CF0x01CF0x01Unknown
0x01D00x01D70x08ticket_id (used as IV for title key decryption of console specific titles)
0x01D80x01DB0x04Console ID
0x01DC0x01E30x08Title ID / Initialization Vector (IV) used for AES-CBC encryption
0x01E40x01E50x02Unknown, mostly 0xFFFF
0x01E60x01E70x02Ticket title version
0x01E80x01EB0x04Permitted Titles Mask
0x01EC0x01EF0x04Permit mask. The current disc title is ANDed with the inverse of this mask to see if the result matches the Permitted Titles Mask.
0x01F00x01F00x01Title Export allowed using PRNG key (1 = allowed, 0 = not allowed)
0x01F10x01F10x01Common Key index (2 = Wii U Wii mode, 1 = Korean Common key, 0 = 'normal' Common key)
0x01F20x02210x30Unknown. Is all 0 for non-VC, for VC, all 0 except last byte is 1.
0x02220x02610x40Content access permissions (one bit for each content)
0x02620x02630x02Padding (Always 0)
0x02640x02670x04Enable time limit (1 = Enabled, 0 = Disabled)
0x02680x026B0x04Time limit (Seconds)
0x026C0x02A30x387 more time_limit structs as above ({int enable, seconds})

To get the title key decrypt the 16 bytes at offset 0x1bf with the Common Key using the Title ID (offset 0x1dc) as the initialization vector (the last 8 bytes of the IV should be zero).

Retrieved from 'https://wiibrew.org/w/index.php?title=Ticket&oldid=107450'