1 /* $MirOS: src/sys/crypto/arc4.h,v 1.3 2010/09/21 21:24:22 tg Exp $ */ 2 3 /* rewritten; no code left, only the API */ 4 5 #include <sys/slibkern.h> 6 7 /* struct rc4_ctx == struct arcfour_status */ 8 #define rc4_ctx arcfour_status 9 10 /* this is actually correct, unlike OpenBSD's which is 256 = too small */ 11 #define RC4STATE sizeof(struct rc4_ctx) 12 #define RC4KEYLEN 16 13 14 void rc4_keysetup(struct rc4_ctx *, const u_char *, u_int32_t); 15 void rc4_crypt(struct rc4_ctx *, const u_char *, u_char *, u_int32_t); 16