- 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

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):