motoharu-gosuto / psvpfstools

Tools for decrypting PS Vita PFS filesystem
127 stars 22 forks source link

psvpfstools on Python #48

Open ghost opened 4 years ago

ghost commented 4 years ago

Want to write a python3 version of the program psvpfstools without access to the (cma.henkaku.xyz). There is a detailed decryption algorithm? c++ know bad

ghost commented 4 years ago

ОК.I just need to know where to get the keys and what encryption method (AES???,or another)

motoharu-gosuto commented 4 years ago

@BpyH64 Encryption method is believed to be variation of AES-XTS with tweak keys and cipher text stealing. It is not that simple. Some details are here: https://github.com/motoharu-gosuto/psvpfstools/blob/master/psvpfsparser/PfsCryptEngineBase.cpp#L443 Other important things include different variation of sector/page verification with hashes and merkle trees. Overall encryption can not be explained easily. You would need to explore the code if you want to understand how the tool works.