Welcome to PlayStationHaX

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • GregoryRasputin

      Say Hello, Make An Introduction Thread :)   11/20/2015

      We love having new members join the forum, what we like more is them being productive people and contributing a little bit to the forum. So if you are a new member, let us know who you are by saying hi in an introduction thread, you can find the forum section here: https://playstationhax.xyz/forums/forum/15-member-introduction/
LightningMods

[Vita] PSVIMGTools Released

6daa23ad79f64f9a8d0c5f54801a1a6b.png

Today, Vita developer Yifan Lu with help from H made PSVIMGTools for backing up and restoring Vita Data 

wiki.henkaku.xyz/vita/PSVIMG Said this
 

Generating PSVIMG

When CMA is used to backup system, game, or savedata from the Vita to a PC or PS3, the following algorithm is used:

  • Using a tar-like structure, stream all of the file data into a file.
  • If making a PSVMD file, use the deflate algorithm to compress.
  • Generate a random nonce for the first 0x10 bytes using the RndNumber syscall.
  • Generate a unique session AES256 key using a secret phrase and the PSN account id of the PSVita.
  • generate a SHA256 hash of the plaintext every 0x8000 bytes and insert the hash into the filestream.
  • Encrypt the stream data using EncDecKeygen syscall from SceSblDmac5Mgr with the nonce as the header and the AES256 session key.
  • Transmit to PC or PS3.


Secrets

If you look at the 16 character hex directory name included in part of the backup path, that is your PSN account id. The AES256 session key is calculated by doing a SHA256 hash of the 8 byte hex binary representation of the PSN account id followed by the secret phrase: Sri Jayewardenepura Kotte

Example

Buffer:

 

01 23 45 67 89 AB CD EF 53 72 69 20 4A 61 79 65 77
61 72 64 65 6E 65 70 75 72 61 20 4B 6F 74 74 65

SHA256 of this buffer generates the AES256 session key of

02EAAB5A00EC9D4207E8B1F53F8A2F3F91F1A73AAFDD2A81CCFEE3E83E5B101A

 

  psvimgtools-master.zip 14 hours ago

 


Source (1) (2)

Edited by LightningMods
0

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   You have pasted content with formatting.   Remove formatting

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor