00001 /* Allocates and writes to a 64 kB object on the stack. 00002 This must succeed. */ 00003 00004 #include <string.h> 00005 #include "tests/arc4.h" 00006 #include "tests/cksum.h" 00007 #include "tests/lib.h" 00008 #include "tests/main.h" 00009 00010 void 00011 test_main (void) 00012 { 00013 char stk_obj[65536]; 00014 struct arc4 arc4; 00015 00016 arc4_init (&arc4, "foobar", 6); 00017 memset (stk_obj, 0, sizeof stk_obj); 00018 arc4_crypt (&arc4, stk_obj, sizeof stk_obj); 00019 msg ("cksum: %lu", cksum (stk_obj, sizeof stk_obj)); 00020 }