PS3Dec r5
---
Encrypt/Decrypt a PS3 disc image. Supports original images (if user supplies
the key) and 3k3y images.

Usage: PS3Dec <mode> <type> [type_op] in [out]

If out is not defined, name is in.something, as appropriate

<mode>: 'd' for decrypt
        'e' for encrypt
<type>: "3k3y" for a 3k3y image (requires no type_op)
        "d1"   says type_op is d1 in hex form (32 char ascii) BEFORE
               it's been processed into the actual decryption key
        "key"  says type_op is the actual key in hex form (32 char
               ascii), aka d1 AFTER it has been processed, aka disc_key
---
Changes since r4:
*type renamed: "hex" to "d1"
*type added  : "key", the actual disc_key used to crypt
*type removed: "file", there's no standardised file format as yet. Until there
               is (if there is), this stays removed
*Can now compile elf 32bit
