Implemented SDAT decryption algorithm.

The algorithm is now complete, only the decompression is still missing.
AES, SHA1 and HMAC-SHA1 are supported thanks to PolarSSL source code and AES-CMAC was added by me.

Memory management improvements are still needed, but it should decrypt .sdat files just fine.