Debugged AES-256 key generation. Now it works.