We now have a current svn snapshot of libqxt in our contrib dir, and
[quassel.git] / src / contrib / libqxt-2007-10-24 / src / crypto / thirdparty / md4.h
diff --git a/src/contrib/libqxt-2007-10-24/src/crypto/thirdparty/md4.h b/src/contrib/libqxt-2007-10-24/src/crypto/thirdparty/md4.h
new file mode 100644 (file)
index 0000000..b44e465
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * This is an OpenSSL-compatible implementation of the RSA Data Security,
+ * Inc. MD4 Message-Digest Algorithm.
+ *
+ * Written by Solar Designer <solar@openwall.com> in 2001, and placed in
+ * the public domain.  See md4.c for more information.
+ */
+
+#ifndef __MD4_H
+#define __MD4_H
+
+#include <qglobal.h>
+
+#define        MD4_RESULTLEN (128/8)
+
+struct md4_context {
+       quint32 lo, hi;
+       quint32 a, b, c, d;
+       unsigned char buffer[64];
+       quint32 block[MD4_RESULTLEN];
+};
+
+static void md4_init(struct md4_context *ctx);
+static void md4_update(struct md4_context *ctx, const unsigned char *data, size_t size);
+static void md4_final(struct md4_context *ctx, unsigned char result[MD4_RESULTLEN]);
+
+
+#endif