summaryrefslogtreecommitdiff
path: root/includes/md5.h
diff options
context:
space:
mode:
authorFelix Wallin <nibbler.v1@gmail.com>2010-09-27 10:53:05 (GMT)
committer Felix Wallin <nibbler.v1@gmail.com>2010-09-27 10:53:05 (GMT)
commit58d710b22484b8c7cc9dadefd305f3506d3ff139 (patch)
treef2df82d6ed13d220db8f8087039b3dd42ecec395 /includes/md5.h
parent2d5558491fa864f340668df05a7869ca820ddef1 (diff)
downloadpowder-58d710b22484b8c7cc9dadefd305f3506d3ff139.zip
powder-58d710b22484b8c7cc9dadefd305f3506d3ff139.tar.gz
layout change
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