]> git.ozlabs.org Git - ppp.git/blobdiff - linux/mppe/sha1.h
Added kernel MPPE patches (2.2.20 kernel only!) from Frank Cusack.
[ppp.git] / linux / mppe / sha1.h
diff --git a/linux/mppe/sha1.h b/linux/mppe/sha1.h
new file mode 100644 (file)
index 0000000..b23356b
--- /dev/null
@@ -0,0 +1,18 @@
+/* sha1.h */
+
+#ifndef _SHA1_H
+#define _SHA1_H
+
+typedef struct {
+    unsigned long state[5];
+    unsigned long count[2];
+    unsigned char buffer[64];
+} SHA1_CTX;
+
+#define SHA1_SIGNATURE_SIZE 20
+
+extern void SHA1_Init(SHA1_CTX *);
+extern void SHA1_Update(SHA1_CTX *, const unsigned char *, unsigned int);
+extern void SHA1_Final(unsigned char[SHA1_SIGNATURE_SIZE], SHA1_CTX *);
+
+#endif /* _SHA1_H */