Line 28:
Line 28:
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | 8
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | 8
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" | 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
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" | 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
+
|- style="background-color: #ddd;"
+
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x1f1
+
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | 1
+
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" | Korean Common Key marker (1 = Korean key, 0 = normal key)
|- style="background-color: #ddd;"
|- style="background-color: #ddd;"
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x222
| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x222
Line 43:
Line 47:
To get the title key decrypt the 16 bytes at offset 0x1bf with the master key using the Title ID (offset 0x1dc) as the initialization vector (the last 8 bytes of the IV should be zero).
To get the title key decrypt the 16 bytes at offset 0x1bf with the master key using the Title ID (offset 0x1dc) as the initialization vector (the last 8 bytes of the IV should be zero).
−
−
<b>TO CONFIRM:</b> xt5 has said on HackMii that offset 0x1F1, with a value of 1, is used in Korean Wiis to use a different common key. Can someone confirm/update?