AES packet encryption C++ program