- Decryption using disc key didn't work as it was encrypting the key before usage
This commit is contained in:
Nichlas Severinsen 2021-06-02 18:38:29 +02:00
parent 0b236b5530
commit 46317877c1
2 changed files with 6 additions and 2 deletions

6
.gitignore vendored
View file

@ -2,6 +2,10 @@
*.ird
*.gz
PS3_GAME/
PS3_UPDATE/
PS3_DISC.SFB
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
@ -105,4 +109,4 @@ venv.bak/
/site
# mypy
.mypy_cache/
.mypy_cache/

View file

@ -117,7 +117,7 @@ class ISO:
self.disc_key = cipher.encrypt(self.ird.data1)
else:
self.disc_key = cipher.encrypt(core.to_bytes(args.decryption_key))
self.disc_key = core.to_bytes(args.decryption_key)
def decrypt(self, args):