Improved encryption/decryption of large files (thanks to "mind" from ps3hax.net).

Fixed decryption of version 1 EDAT/SDAT files.

Fixed encryption of DEBUG files.

Improved several checks.

Added the ability to use RIF keys instead of RAP files.