Generating PSVIMGWhen 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.SecretsIf 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