Changes

2,609 bytes removed ,  00:23, 6 October 2008
m
no edit summary
=== File structure ===
{| styleclass="border-collapse: collapse; padding: 0.2em 0.2em 0.2em 0.2em;wikitable"|- style="background-color: #ddd;"| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | '''! Start'''| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | '''! Length'''| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" | '''! Description'''|- style="background-color: #ddd;"| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x000| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | 4| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" | Signature type (always 0x10001 for RSA-2048)|- style="background-color: #ddd;"| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x005| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | 256| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" | Signature by a certificate's key (everything after this field is covered by this signature)|- style="background-color: #ddd;"| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x140| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | 64| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" | Signature issuer|- style="background-color: #ddd;"| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x1bf| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | 16| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" | Encrypted title key|- style="background-color: #ddd;"| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x1dc| 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="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;" | Common Key index (1 = Korean Common key, 0 = "normal" Common key)|- 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: #ddd;" | 32| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" | Always 0xFF (?)|- style="background-color: #ddd;"| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x264| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | 4| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" | Enable time limit (1 = Enabled, 0 = Disabled)|- style="background-color: #ddd;"| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ded;" | 0x268| style="border: 1px solid #ccc; padding: 0.2em; background-color: #ddd;" | 4| style="border: 1px solid #ccc; padding: 0.2em; background-color: #edd;" | Time limit (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).
2,375

edits