PRX Decryption: add support for type 0/1/2/5/6 decryption

This commit is contained in:
Davee Morgan
2020-01-11 15:00:07 +00:00
parent 78e36ece51
commit 1d7bbdd006
8 changed files with 583 additions and 302 deletions
+1 -1
View File
@@ -1109,7 +1109,7 @@ static Module *__KernelLoadELFFromPtr(const u8 *ptr, size_t elfSize, u32 loadAdd
ptr = newptr;
magicPtr = (u32_le *)ptr;
int ret = pspDecryptPRX(in, (u8*)ptr, head->psp_size);
if (ret == MISSING_KEY) {
if (reportedModule) {
// This should happen for all "kernel" modules.
*error_string = "Missing key";
delete [] newptr;