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.

20 rivejä
324 B

// Change this file if your system uses a different randomness source.
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
int fill_random(void *buf, int size)
{
FILE *random = fopen("/dev/urandom", "r");
if (!random)
{
return errno;
}
fread(buf, size, 1, random);
fclose(random);
return 0;
}