mirror of
https://github.com/NinjaCheetah/libWiiPy.git
synced 2025-04-25 12:51:01 -04:00
Correctly generate IV for Title Key decrpytion for all Title ID formats
This commit is contained in:
parent
7daba7ec86
commit
d6e6352d0a
@ -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!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user