00001 #ifndef TESTS_ARC4_H 00002 //2885309852 00003 #define TESTS_ARC4_H 00004 00005 #include <stddef.h> 00006 #include <stdint.h> 00007 00008 /* Alleged RC4 algorithm encryption state. */ 00009 struct arc4 00010 { 00011 uint8_t s[256]; 00012 uint8_t i, j; 00013 }; 00014 00015 void arc4_init (struct arc4 *, const void *, size_t); 00016 void arc4_crypt (struct arc4 *, void *, size_t); 00017 00018 #endif /* tests/arc4.h */