summaryrefslogtreecommitdiff
path: root/include/rc4.h
diff options
context:
space:
mode:
authorpixel <pixel>2007-06-11 11:29:16 +0000
committerpixel <pixel>2007-06-11 11:29:16 +0000
commite1953bb532fdcb7b629ab10cdc86f0253874d0fa (patch)
tree501f48952593d4855cb8ba5b030269ddf089c1dd /include/rc4.h
parent9db92074f0a05b2b2e34f960b12c1fb64906131b (diff)
Adding missing header files.
Diffstat (limited to 'include/rc4.h')
-rw-r--r--include/rc4.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/rc4.h b/include/rc4.h
new file mode 100644
index 0000000..45b3e1e
--- /dev/null
+++ b/include/rc4.h
@@ -0,0 +1,20 @@
+#ifndef _RC4_H
+#define _RC4_H
+
+struct rc4_state
+{
+ int x, y, m[256];
+};
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void rc4_setup( struct rc4_state *s, unsigned char *key, int length );
+void rc4_crypt( struct rc4_state *s, unsigned char *data, int length );
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* rc4.h */