]> git.ozlabs.org Git - ppp.git/blobdiff - linux/mppe/arcfour.h
Added kernel MPPE patches (2.2.20 kernel only!) from Frank Cusack.
[ppp.git] / linux / mppe / arcfour.h
diff --git a/linux/mppe/arcfour.h b/linux/mppe/arcfour.h
new file mode 100644 (file)
index 0000000..27abefb
--- /dev/null
@@ -0,0 +1,17 @@
+/* arcfour.h */
+
+#ifndef _ARCFOUR_H
+#define _ARCFOUR_H
+
+typedef struct {
+    unsigned i;
+    unsigned j;
+    unsigned char S[256];
+} arcfour_context;
+
+extern void arcfour_setkey(arcfour_context *, const unsigned char *, unsigned);
+extern void arcfour_encrypt(arcfour_context *, const unsigned char *, unsigned,
+                           unsigned char *);
+#define arcfour_decrypt arcfour_encrypt
+
+#endif /* _ARCFOUR_H */