Optimized AES-CTR mode for use with the scrypt file format.