Slightly improve fakesign docstrings

This commit is contained in:
Campbell 2024-07-17 20:48:16 -04:00
parent a56fa6e051
commit bcd61b8a37
Signed by: NinjaCheetah
GPG Key ID: B547958AF96ED344
2 changed files with 6 additions and 0 deletions

View File

@ -234,6 +234,9 @@ class Ticket:
older IOS versions that incorrectly check the hash using strcmp() instead of memcmp(). The signature will also
be erased and replaced with all NULL bytes.
The hash is brute-forced by using the first two bytes of an unused section of the Ticket as a 16-bit integer,
and incrementing that value by 1 until an appropriate hash is found.
This modifies the Ticket object in place. You will need to call this method after any changes, and before
dumping the Ticket object back into bytes.
"""

View File

@ -235,6 +235,9 @@ class TMD:
older IOS versions that incorrectly check the hash using strcmp() instead of memcmp(). The signature will also
be erased and replaced with all NULL bytes.
The hash is brute-forced by incrementing an unused 16-bit integer in the TMD by 1 until an appropriate hash is
found.
This modifies the TMD object in place. You will need to call this method after any changes, and before dumping
the TMD object back into bytes.
"""