summaryrefslogtreecommitdiff
path: root/md5.h
diff options
context:
space:
mode:
Diffstat (limited to 'md5.h')
-rw-r--r--md5.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/md5.h b/md5.h
new file mode 100644
index 0000000..277e617
--- /dev/null
+++ b/md5.h
@@ -0,0 +1,14 @@
+typedef unsigned int uint32;
+
+struct MD5Context {
+ uint32 buf[4];
+ uint32 bits[2];
+ unsigned char in[64];
+ int doByteReverse;
+};
+typedef struct MD5Context MD5_CTX;
+
+void rpmMD5Init(struct MD5Context *context);
+void rpmMD5Update(struct MD5Context *context, unsigned char const *buf, unsigned len);
+void rpmMD5Update32(struct MD5Context *context, unsigned int i);
+void rpmMD5Final(unsigned char digest[16], struct MD5Context *context);