4 #define SIZE (128 * 1024)
9 main (int argc, char *argv[])
11 const char *key = argv[argc - 1];
16 arc4_init (&arc4, key, strlen (key));
17 arc4_crypt (&arc4, buf, SIZE);
19 /* Decrypt back to zeros. */
20 arc4_init (&arc4, key, strlen (key)));
21 arc4_crypt (&arc4, buf, SIZE);
23 /* Check that it's all zeros. */
24 for (i = 0; i < SIZE; i++)
27 printf ("(child-linear) byte %zu != 0\n", i);