summaryrefslogtreecommitdiff
path: root/md5.h
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-07-25 14:03:39 (GMT)
committer Simon <simon@hardwired.org.uk>2010-07-25 14:03:39 (GMT)
commit2b8775bc56a1016198010e50a0329db82144c1cc (patch)
treea8e91dc51d6eb558382dfd670768a4f260113b89 /md5.h
parentdad7b3a1ab5979cc80c900a2e176415de447e837 (diff)
downloadpowder-2b8775bc56a1016198010e50a0329db82144c1cc.zip
powder-2b8775bc56a1016198010e50a0329db82144c1cc.tar.gz
Current source - 38.0
Diffstat (limited to 'md5.h')
-rwxr-xr-xmd5.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/md5.h b/md5.h
new file mode 100755
index 0000000..3f675d6
--- /dev/null
+++ b/md5.h
@@ -0,0 +1,17 @@
+#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