Added functions implementing AES key generation.