This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Savedata Encryption/Decryption
It's said that PPSSPP v0.9.6-813 fixed 俺の妹がこんなに可愛いわけがない ポータブル[ULJS00358] savedata bug
   
Reply
It is about these 2 commit

https://github.com/hrydgard/ppsspp/pull/5368
and https://github.com/hrydgard/ppsspp/pull/5369

(02-09-2014, 06:42 AM)onelight Wrote: It's said that PPSSPP v0.9.6-813 fixed 俺の妹がこんなに可愛いわけがない ポータブル[ULJS00358] savedata bug
Reply
So... I'm reading SED-PC source code and I think
> System.arraycopy(hash_0x20, 0, data, 0x20+0x11d0, 0x10);
must happen just after
> GenerateSavedataHash(data, size, 4, seed);

What I can say so far is that the hashing algorithm is overlapping.
I hope I can tell you more later.

Now at least my sed can also calc correct hash.
Reply
Hi hykem,

Finally psp-savedata-endecrypter is complete, with help of SED-PC source code.
Also, the following code should give correct hash even for mode4.

http://pastebin.com/DZBFd8jk
Reply
is it tested? I can apply it to source since hykem appears away these days Tongue
Reply
shadow,

sadly I don't have any PCs which can execute jpcsp.

umm... I might be able to test using my old Windows, because it has ATI Radeon HD 2400... My recent MacBook is Intel HD 4000 (i.e. out of luck even on Windows bootcamp)
Reply
not even in software mode?
Reply
(02-11-2014, 08:49 AM)popsdeco Wrote: Hi hykem,

Finally psp-savedata-endecrypter is complete, with help of SED-PC source code.
Also, the following code should give correct hash even for mode4.

http://pastebin.com/DZBFd8jk

Is this what you say ? http://wololo.net/2014/02/02/release-sed-port-for-pc/
code
https://github.com/hgoel0974/SED-PC
Reply
onelight, I wrote another implementation based on jpcsp backend:
https://github.com/cielavenir/psp-savedata-endecrypter

But jpcsp's hash calculation code was wrong. So SED-PC author went ahead. That couldn't be helped.
What I can do now is just to compare jpcsp and SED-PC and tell what is wrong to jpcsp team.
Reply
I tested 3438M, but the calculated hash doesn't match with my hash...

Now I'm quite confused. I was able to send a patch for SED-PC to support mode4 hash.
This means both PPSSPP and jpcsp's crypto engines are alright.
So... the problem is lying in KIRK.java?
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)