From b9ee7b46dbdd17a937a392c65b7780f0da3c501e Mon Sep 17 00:00:00 2001 From: Li <39113159+KuromeSan@users.noreply.github.com> Date: Sat, 30 Apr 2022 12:09:01 +1200 Subject: [PATCH] Add files via upload --- psse_decrypt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psse_decrypt.py b/psse_decrypt.py index 648b9d7..ad30697 100644 --- a/psse_decrypt.py +++ b/psse_decrypt.py @@ -38,7 +38,7 @@ def ReadPublisherKey(p12, khapp): # used for PSM Developer Assistant (debug PSSE passphrase = b"password" private_key, certificate, additional_certificates = pkcs12.load_key_and_certificates(pkcs12_file, passphrase) # Parse PKCS12 file - print("[*] Reading: HKAPP "+khapp) + print("[*] Reading HKAPP/HKRNG "+khapp) hkfd = open(khapp, "rb") offset_by = 0 @@ -132,7 +132,7 @@ def DecryptFile(input_filename): iv = b"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F" # Header IV, used to find the real IV key = b"\x4E\x29\x8B\x40\xF5\x31\xF4\x69\xD2\x1F\x75\xB1\x33\xC3\x07\xBE" # Header key for PSM Runtime and used in all retail games. psm_dev_key = b"\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xAA\xBB\xCC\xDD\xEE\xFF" # Header key for PSM Dev, used for all files encrypted with psm_encryptor.dll - runtime_game_key = b"\xA8\x69\x3C\x4D\xF0\xAE\xED\xBC\x9A\xBF\xD8\x21\x36\x92\x91\x2D" # key for Sce.PlayStation.Core.dll + runtime_game_key = b"\xA8\x69\x3C\x4D\xF0\xAE\xED\xBC\x9A\xBF\xD8\x21\x36\x92\x91\x2D" # key for the PlayStation Mobile Runtime (eg used in Sce.PlayStation.Core.dll) total_blocks = math.floor(os.path.getsize(input_filename) / 0x8000)+1