Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decrypting SaveData gives this error: header signature is invalid! #21

Open
alpakeno opened this issue Feb 5, 2018 · 6 comments
Open

Comments

@alpakeno
Copy link

alpakeno commented Feb 5, 2018

Tried 2 savedata and both gives this error, here is the log:

psvpfsparser.exe -i PCSE00899 -o PCSE00899_dec -z "KO5ifR1dQ+eHBhgYmptDTbWwtATZ7+/i6Rcc4OEa5OoDssoAn//cAvu/cR6foneAh0NIVGRmymiMD24AAMciEoQA" -f http://cma.henkaku.xyz

psvpfsparser.exe -i PCSA00008 -o PCSA00008_dec -k 5269EBF7649358B87AB9A045EC1DDF5D -z KO5ifR1dQ+eHBlgi6TKwANkf5BrsGRzi6OfsGuYZ4hgajM9/QZmvv6dMjthRtXOB6xvZ+7GDPDqYR3p6BAD7VhY9 -f http://cma.henkaku.xyz

Successfully decompressed zRIF from provided license string.
parsing files.db...
verifying header...
header signature is invalid

@motoharu-gosuto
Copy link
Owner

motoharu-gosuto commented Feb 5, 2018

@alpakeno
I should have added this to readme.
You dont use zRIF string or klicensee for decrypting savedata or trophies.
Dont provide any of those arguments. Key is taken from sealedkey file.

@alpakeno
Copy link
Author

alpakeno commented Feb 5, 2018

thanks for the info, that's works :)

now i get this error when trying to decrypt save file from from mai dump for this game "PCSE00899"
All mai dump saves gives this error "keystone: invalid magic" but still decrypt it to the output folder except "PCSE00899" it give "Unexpected padding" error, here is the log:

Missing option --klicensee or --zRIF
sealedkey will be used
using sealedkey...
sealedkey: matched retail hmac
parsing files.db...
verifying header...
header signature is valid
root icv is valid
Validating hash tree...
Hash tree is ok
Building directory matrix...
[WARNING] Directory SCE_SYS size is invalid
Building file matrix...
[WARNING] Invalid file type for file OS2SAVEFILE00.DAT. assuming file is encrypted
[WARNING] Invalid file type for file SDSLOT.DAT. assuming file is encrypted
Flattening file pages...
Building dir paths...
Building file paths...
Linking dir paths...
Linking file paths...
Matching file paths...
parsing icv.db...
Unexpected padding

@motoharu-gosuto
Copy link
Owner

@alpakeno
I can only say to you that mai dump stuff is not canonical.
Maybe some crap is written to savedata and this is related to using mai?
You could try sharing this file. I will try to check, but most likely smth is wrong with the savedata.

@alpakeno
Copy link
Author

alpakeno commented Feb 6, 2018

I thought that it's related to mai issue for this game "PCSE00899" to not be able to decrypt it...
But after trying to decrypt SaveData for the physical version of this game "PCSE00019" it gives the same warning and error "Unexpected padding", so i think it's related to parsing the icv.db...
Unfortunately, in the mean time i cannot provide the SaveData file because it's not mine.

@motoharu-gosuto
Copy link
Owner

@alpakeno
Ok, thats interesting. If this is not related to mai - I will try to add some code that ignores this padding and writes only warning.

@alpakeno
Copy link
Author

alpakeno commented Feb 6, 2018

Thanks, that's will be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants