Simple AES chat program
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
399 B

#include <stdio.h>
#include <errno.h>
#include "comm.h"
#include "aes.h"
int main()
{
struct session sess;
initializeSBox();
sess_init(&sess);
if (do_resolve("127.0.0.1", NULL, &sess.params))
{
perror("could not open socket");
return 1;
}
if (do_connect(&sess))
{
perror("could not connect");
return 1;
}
do_unresolve(sess.params);
sess_destroy(&sess);
}