4 int main (int argc, char *argv[])
12 key.push_back (getchar());
14 /* Create the AES object */
17 /* Read all characters of input */
20 for (char c=getchar(); c != EOF; c=getchar())
24 if (input.size() == 16)
26 byteArray ciphertext = aes.encrypt (input);
27 byteArray plaintext = aes.decrypt (ciphertext);
30 for (i=0; i<plaintext.size(); ++i)
31 std::printf ("%c", plaintext.at(i));
41 /* vim: set ts=4 sts=4 sw=4 noet tw=120 nowrap: */