Add support to encrypted ISO#18498
Conversation
|
That's great news, I'll try to build and test it tonight if I have some free time. Just a suggestion: couldn't the emulator also check for the Most games take up a lot of storage but the But of course, just a suggestion. |
|
I agree, there should be a dkey directory at the root of rpcs3 where you can place your own keys |
|
that's an easy improvement I will consider on further PRs as also to implement #18185 etc. |
Megamouse
left a comment
There was a problem hiding this comment.
Just a reminder that this is a c++ project, not a raw C project
applied the suggested changes with the exception of the two for which I provided a reply |
|
Are these 3k3y files still relevant? |
I think so. it is a format where the key from .dkey is encapsulated on the ISO header |
fix compile errors and suppress minor warnings strip minor bug fixes and cleanup minor cleanup minor cleanup Fixed crash at boot parsing an ISO with a empty directory entry at file head applied suggested changes added missing break in switch Update rpcs3/Loader/ISO.cpp Co-authored-by: Megamouse <studienricky89@googlemail.com> use hex_to_bytes() instead of self made functions minor cleanup rewrite nested if() add explicit support to .key minor cleanup optimize partial sector read minor optimization fix conflict
47afbaf to
641f954
Compare
NEW FEATURE
Follow up of #17996 adding support to encrypted ISO based on reference https://www.psx-place.com/threads/webman-mod-and-encrypted-iso.28667/.
The encrypted ISO (if any is detected) is decrypted on-the-fly during emulation.
Supported ISO encryption type:
Decrypted(.iso)3k3y(decrypted / encrypted) (.iso)Redump(encrypted) (.iso+.dkey/.key)Unsupported ISO encryption type:
Encryption type detection:
The encryption type is selected according to the first matching encryption type found following the order below:
Redumptype: ".dkey" or ".key" (as alternative) file, with the same name of the ".iso" file, exists in the same folder of the ".iso" file3k3ytype: 3k3y watermark exists at offset 0xF70NOTE: Both
3k3yandRedumptypes have been tested without performance drop compared to Decrypted ISO and Folder formatBUG FIXES
related #17996
reference https://www.psx-place.com/threads/webman-mod-and-encrypted-iso.28667/