33 lines
971 B
Diff
33 lines
971 B
Diff
diff -ruN john-1.6.37/src/md5.h john-1.6.37-raw-md5/src/md5.h
|
|
--- john-1.6.37/src/md5.h 1970-01-01 01:00:00.000000000 +0100
|
|
+++ john-1.6.37-raw-md5/src/md5.h 2004-11-26 14:13:19.000000000 +0100
|
|
@@ -0,0 +1,28 @@
|
|
+/*
|
|
+ * This is an OpenSSL-compatible implementation of the RSA Data Security,
|
|
+ * Inc. MD5 Message-Digest Algorithm.
|
|
+ *
|
|
+ * Written by Solar Designer <solar@openwall.com> in 2001, and placed in
|
|
+ * the public domain. See md5.c for more information.
|
|
+ */
|
|
+
|
|
+#ifdef HAVE_OPENSSL
|
|
+#include <openssl/md5.h>
|
|
+#elif !defined(_MD5_H)
|
|
+#define _MD5_H
|
|
+
|
|
+/* Any 32-bit or wider unsigned integer data type will do */
|
|
+typedef unsigned long MD5_u32plus;
|
|
+
|
|
+typedef struct {
|
|
+ MD5_u32plus lo, hi;
|
|
+ MD5_u32plus a, b, c, d;
|
|
+ unsigned char buffer[64];
|
|
+ MD5_u32plus block[16];
|
|
+} MD5_CTX;
|
|
+
|
|
+extern void MD5_Init(MD5_CTX *ctx);
|
|
+extern void MD5_Update(MD5_CTX *ctx, void *data, unsigned long size);
|
|
+extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
|
|
+
|
|
+#endif
|