summaryrefslogtreecommitdiff
path: root/includes/md5.h
diff options
context:
space:
mode:
authorJoJoBond <jojobond@hotmail.com>2010-11-05 21:28:04 (GMT)
committer JoJoBond <jojobond@hotmail.com>2010-11-05 21:28:04 (GMT)
commit891774a7e2935a2e82eba8dd51a8f9782b407149 (patch)
tree75399c741be7486e42e88d4d5c88089a4ceb9c2d /includes/md5.h
parent9b8acd9259f67c9efa8125538c91b6108e4155d3 (diff)
parent6124922b9f47003e4935580d792b7ba3b8ba1ede (diff)
downloadpowder-891774a7e2935a2e82eba8dd51a8f9782b407149.zip
powder-891774a7e2935a2e82eba8dd51a8f9782b407149.tar.gz
Merge branch 'master' of github.com:JoJoBond/The-Powder-Toy
Diffstat (limited to 'includes/md5.h')
-rw-r--r--includes/md5.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/includes/md5.h b/includes/md5.h
new file mode 100644
index 0000000..2ae3ae8
--- /dev/null
+++ b/includes/md5.h
@@ -0,0 +1,18 @@
+#ifndef MD5_H
+#define MD5_H
+
+struct md5_context
+{
+ unsigned buf[4];
+ unsigned bits[2];
+ unsigned char in[64];
+};
+
+void md5_init(struct md5_context *context);
+void md5_update(struct md5_context *context, unsigned char const *buf, unsigned len);
+void md5_final(unsigned char digest[16], struct md5_context *context);
+void md5_transform(unsigned buf[4], const unsigned char in[64]);
+
+void md5_ascii(char *result, unsigned char const *buf, unsigned len);
+
+#endif