17 memset (stack_obj, 0,
sizeof stack_obj);
19 msg (
"cksum: %lu",
cksum (stack_obj,
sizeof stack_obj));
void arc4_init(struct arc4 *arc4, const void *key_, size_t size)
void arc4_crypt(struct arc4 *arc4, void *buf_, size_t size)
tests/arc4.h
unsigned long cksum(const void *b_, size_t n)
This is the algorithm used by the Posix ‘cksum’ utility.
void msg(const char *format,...)
void test_main(void)
Demonstrate that the stack can grow.
void * memset(void *dst_, int value, size_t size)
Sets the SIZE bytes in DST to VALUE.
Alleged RC4 algorithm encryption state.