Hello!
Half year ago I've created a tool to unpack encrypted and compressed archives from both versions of Gran Turismo (5, 6) and yesterday some guys asked me for its source code. So I've decided to release it. However a part of the source code requires some refactoring:
https://mega.co.nz/#!OwBXnZ5R!nG8dq3ixN ... 9_rg0l7FrQPD use custom file formats, cryptographic algorithms, deflate compression, sqlite database, custom script language called AdHoc (all scripts are already compiled here). If I recall correctly textures use DXT compression and soundtracks are stored in a custom container in the ATRAC3 format, movies are in the PAM format but they are encrypted, I've found a single key for an intro movie, other keys are stored in scripts. Also I've reversed their cache system with such weird naming system (K/H/A3 and so on), you can find all needed functions for them too.
Unfortunately I have no free time to continue this so I hope someone will be more lucky with it. Enjoy!