]> git.ozlabs.org Git - ppp.git/blob - linux/mppe/arcfour.h
Added kernel MPPE patches (2.2.20 kernel only!) from Frank Cusack.
[ppp.git] / linux / mppe / arcfour.h
1 /* arcfour.h */
2
3 #ifndef _ARCFOUR_H
4 #define _ARCFOUR_H
5
6 typedef struct {
7     unsigned i;
8     unsigned j;
9     unsigned char S[256];
10 } arcfour_context;
11
12 extern void arcfour_setkey(arcfour_context *, const unsigned char *, unsigned);
13 extern void arcfour_encrypt(arcfour_context *, const unsigned char *, unsigned,
14                             unsigned char *);
15 #define arcfour_decrypt arcfour_encrypt
16
17 #endif /* _ARCFOUR_H */