From d6e6352d0acf1bfd28a1d1a7a5ad00f76d70922f Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Sun, 28 Jul 2024 03:15:51 -0400 Subject: [PATCH] Correctly generate IV for Title Key decrpytion for all Title ID formats --- src/libWiiPy/title/crypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libWiiPy/title/crypto.py b/src/libWiiPy/title/crypto.py index 5ce05f0..35e2e9e 100644 --- a/src/libWiiPy/title/crypto.py +++ b/src/libWiiPy/title/crypto.py @@ -17,7 +17,7 @@ def _convert_tid_to_iv(title_id: str | bytes) -> bytes: title_key_iv = binascii.unhexlify(title_id) # This catches the format b'\x00\x00\x00\x01\x00\x00\x00\x02' elif len(title_id) == 8: - pass + title_key_iv = title_id # If it isn't one of those lengths, it cannot possibly be valid, so reject it. else: raise ValueError("Title ID is not valid!")