Fix #6
- Decryption using disc key didn't work as it was encrypting the key before usage
This commit is contained in:
parent
0b236b5530
commit
46317877c1
2 changed files with 6 additions and 2 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -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/
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue