Line 11: |
Line 11: |
| ! Description | | ! Description |
| |- | | |- |
− | | 0x000 | + | | 0x0000 |
− | | 0x003 | + | | 0x0003 |
− | | 0x004 | + | | 0x04 |
| | Signature type (always 0x10001 for RSA-2048) | | | Signature type (always 0x10001 for RSA-2048) |
| |- | | |- |
− | | 0x004 | + | | 0x0004 |
− | | 0x103 | + | | 0x0103 |
| | 0x100 | | | 0x100 |
− | | Signature of ticket view by a [[certificate chain|certificate's]] key | + | | Signature by a [[certificate chain|certificate's]] key |
| |- | | |- |
− | | 0x104 | + | | 0x0104 |
− | | 0x13F | + | | 0x013F |
| | 0x3C | | | 0x3C |
− | | Padding (always 0) | + | | Padding (Always 0 - everything after this field is covered by the above signature) |
| |- | | |- |
− | | 0x140 | + | | 0x0140 |
− | | 0x2A2 | + | | 0x017F |
− | | 0x162 | + | | 0x40 |
− | | Ticket view
| |
− | |}
| |
− | | |
− | === Ticket view ===
| |
− | {| class="wikitable"
| |
− | |-
| |
− | ! Start
| |
− | ! End
| |
− | ! Length
| |
− | ! Description
| |
− | |-
| |
− | | 0x000
| |
− | | 0x039
| |
− | | 0x040
| |
| | Signature issuer | | | Signature issuer |
| |- | | |- |
− | | 0x040 | + | | 0x0180 |
− | | 0x07B | + | | 0x01BB |
− | | 0x03C | + | | 0x3C |
| | ECDH data, used to generate one-time key during install of console specific titles | | | ECDH data, used to generate one-time key during install of console specific titles |
| |- | | |- |
− | | 0x07C | + | | 0x01BC |
− | | 0x07E | + | | 0x01BE |
− | | 0x003 | + | | 0x03 |
| | Unused/Padding | | | Unused/Padding |
| |- | | |- |
− | | 0x07F | + | | 0x01BF |
− | | 0x08E | + | | 0x01CE |
− | | 0x010 | + | | 0x10 |
| | Title Key, encrypted by Common Key | | | Title Key, encrypted by Common Key |
| |- | | |- |
− | | 0x08F | + | | 0x01CF |
− | | 0x08F | + | | 0x01CF |
− | | 0x001 | + | | 0x01 |
| | Unknown | | | Unknown |
| |- | | |- |
− | | 0x090 | + | | 0x01D0 |
− | | 0x097 | + | | 0x01D7 |
− | | 0x008 | + | | 0x08 |
| | ticket_id (used as IV for title key decryption of console specific titles) | | | ticket_id (used as IV for title key decryption of console specific titles) |
| + | |
| |- | | |- |
− | | 0x098 | + | | 0x01D8 |
− | | 0x09B | + | | 0x01DB |
− | | 0x004 | + | | 0x04 |
| | Console ID | | | Console ID |
| |- | | |- |
− | | 0x09C | + | | 0x01DC |
− | | 0x0A3 | + | | 0x01E3 |
− | | 0x008 | + | | 0x08 |
| | Title ID / [http://en.wikipedia.org/wiki/Initialization_Vector Initialization Vector] (IV) used for AES-[http://en.wikipedia.org/wiki/Cipher_Block_Chaining#Cipher-block_chaining_.28CBC.29 CBC] encryption | | | Title ID / [http://en.wikipedia.org/wiki/Initialization_Vector Initialization Vector] (IV) used for AES-[http://en.wikipedia.org/wiki/Cipher_Block_Chaining#Cipher-block_chaining_.28CBC.29 CBC] encryption |
| |- | | |- |
− | | 0x0A4 | + | | 0x01E4 |
− | | 0x0A5 | + | | 0x01E5 |
− | | 0x002 | + | | 0x02 |
| | Unknown, mostly 0xFFFF | | | Unknown, mostly 0xFFFF |
| |- | | |- |
− | | 0x0A6 | + | | 0x01E6 |
− | | 0x0A7 | + | | 0x01E7 |
− | | 0x002 | + | | 0x02 |
| | Ticket title version | | | Ticket title version |
| |- | | |- |
− | | 0x0A8 | + | | 0x01E8 |
− | | 0x0A9 | + | | 0x01EB |
− | | 0x002 | + | | 0x04 |
| | Permitted Titles Mask | | | Permitted Titles Mask |
| |- | | |- |
− | | 0x0AA | + | | 0x01EC |
− | | 0x0AD | + | | 0x01EF |
− | | 0x004 | + | | 0x04 |
| | Permit mask. The current disc title is ANDed with the inverse of this mask to see if the result matches the Permitted Titles Mask. | | | Permit mask. The current disc title is ANDed with the inverse of this mask to see if the result matches the Permitted Titles Mask. |
| |- | | |- |
− | | 0x0AE | + | | 0x01F0 |
− | | 0x0AE | + | | 0x01F0 |
− | | 0x001 | + | | 0x01 |
| | Title Export allowed using PRNG key (1 = allowed, 0 = not allowed) | | | Title Export allowed using PRNG key (1 = allowed, 0 = not allowed) |
| |- | | |- |
− | | 0x0AF | + | | 0x01F1 |
− | | 0x0AF | + | | 0x01F1 |
− | | 0x001 | + | | 0x01 |
| | Common Key index (2 = [http://wiiubrew.org/wiki/WiiMode Wii U Wii mode], 1 = Korean Common key, 0 = "normal" Common key) | | | Common Key index (2 = [http://wiiubrew.org/wiki/WiiMode Wii U Wii mode], 1 = Korean Common key, 0 = "normal" Common key) |
| |- | | |- |
− | | 0x0B0 | + | | 0x01F2 |
− | | 0x0DF | + | | 0x0221 |
− | | 0x030 | + | | 0x30 |
| | Unknown. Is all 0 for non-VC, for VC, all 0 except last byte is 1. | | | Unknown. Is all 0 for non-VC, for VC, all 0 except last byte is 1. |
| |- | | |- |
− | | 0x0E0 | + | | 0x0222 |
− | | 0x11F | + | | 0x0261 |
− | | 0x040 | + | | 0x40 |
| | Content access permissions (one bit for each content) | | | Content access permissions (one bit for each content) |
| |- | | |- |
− | | 0x120 | + | | 0x0262 |
− | | 0x121 | + | | 0x0263 |
− | | 0x002 | + | | 0x02 |
| | Padding (Always 0) | | | Padding (Always 0) |
| |- | | |- |
− | | 0x122 | + | | 0x0264 |
− | | 0x125 | + | | 0x0267 |
− | | 0x004 | + | | 0x04 |
| | Enable time limit (1 = Enabled, 0 = Disabled) | | | Enable time limit (1 = Enabled, 0 = Disabled) |
| |- | | |- |
− | | 0x126 | + | | 0x0268 |
− | | 0x129 | + | | 0x026B |
− | | 0x004 | + | | 0x04 |
| | Time limit (Seconds) | | | Time limit (Seconds) |
| |- | | |- |
− | | 0x12A | + | | 0x026C |
− | | 0x161 | + | | 0x02A3 |
− | | 0x038 | + | | 0x38 |
| | 7 more time_limit structs as above ({int enable, seconds}) | | | 7 more time_limit structs as above ({int enable, seconds}) |
| |} | | |} |