wiithon.crypto.keys module
- wiithon.crypto.keys.decrypt_title_key(encrypted_key, common_key_index, title_id)[source]
Decrypt the title key using the common key and title ID as IV
Build the IV: title_id (8 bytes) + 8 zero bytes
Select the right common key by index
Decrypt with AES-128-CBC
The resulting title key will be used to decrypt all data block in the partition :type encrypted_key:
bytes:param encrypted_key: Encrypted title key :type common_key_index:int:param common_key_index: Common key index :type title_id:bytes:param title_id: Title ID
- wiithon.crypto.keys.encrypt_title_key(decrypted_key, common_key_index, title_id)[source]
Encrypt the title key using the common key and title ID as IV