Keys

Useful information
PSVita uses F00D and KIRK for high security of keys.

F00D keys have not be shared publicly yet but have certainly been found by a F00D hack.

KIRK have been hacked on PSP and almost fully reversed in 2008.

The KIRK keys are mainly the same than on PSP but some have been changed past 3.60 (before 3.67).

KIRK10 (used in IDStorage) explanation:

Save Data Source:

Kirk Engine source (there exists other version of kirk-engine):

Location
For deroad's scetool, keyfiles should be placed in  or.

Naming Conventions
naming:
 * file prefix: pkg
 * file suffix: 092 103 105 106 150 151... etc.
 * key file (erk): %s-key-%s
 * iv file (riv): %s-iv-%s
 * ctype file (curvetype): %s-ctype-%s
 * pub file (public): %s-pub-%s
 * priv file (private): %s-priv-%s

Content PKG Keys
These AES-CTR 128-bit keys are used in Content PKG file decryption.

PSVita keys use a different algorithm: you first encrypt the IV with the correct type of key, then use the result as the actual key for the CTR. Every pkg will use a different key as a result of this.

index.dat keysets
These AES-CBC 256-bit keys are used in  file decryption.

Title Update Download Link keyset
This HMAC key is for downloading game title updates. See link here for details.

Compiled GUI App: Vita Tools

RSA RIF Keys

 * RSA Exponent is 65537 (0x10001)

RSA PKG Keys

 * RSA Exponent is 65537 (0x10001)

registry.db0 XOR Key
This key is used by SceRegistryMgr to decode.

Database Reconstruction Magic
BEBAFECA (or CAFEBABE byteswapped)

PS3 noname exports
bc5eba9e042504905b64274994d9c41f


 * algo is sha1(name + 0xsuffix) where name+suffix is all ascii

PSVITA noname exports
c1b886af5c31846467e7ba5e2cffd64a


 * algo is sha1(name + suffix) where name + suffix is hex