00001 /* Demonstrate that the stack can grow. 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 stack_obj[4096]; 00014 struct arc4 arc4; 00015 00016 arc4_init (&arc4, "foobar", 6); 00017 memset (stack_obj, 0, sizeof stack_obj); 00018 arc4_crypt (&arc4, stack_obj, sizeof stack_obj); 00019 msg ("cksum: %lu", cksum (stack_obj, sizeof stack_obj)); 00020 }