aboutsummaryrefslogtreecommitdiffstats
path: root/tools/blktap2/drivers/md5.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-07 15:47:28 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-07 15:47:28 +0100
commita23a9e65ec007fcbd040f2b556bba0cd9fd126d4 (patch)
tree898b0e6fbc4d8305048cdebcc83dd83801c3890c /tools/blktap2/drivers/md5.h
parent9d13fd9fd320a7740c6446c048ff6a2990095966 (diff)
downloadxen-a23a9e65ec007fcbd040f2b556bba0cd9fd126d4.tar.gz
xen-a23a9e65ec007fcbd040f2b556bba0cd9fd126d4.tar.bz2
xen-a23a9e65ec007fcbd040f2b556bba0cd9fd126d4.zip
bltap2: implement md5 directly, to remove ssl dependency
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'tools/blktap2/drivers/md5.h')
-rw-r--r--tools/blktap2/drivers/md5.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/blktap2/drivers/md5.h b/tools/blktap2/drivers/md5.h
new file mode 100644
index 0000000000..065bd93ba0
--- /dev/null
+++ b/tools/blktap2/drivers/md5.h
@@ -0,0 +1,15 @@
+#ifndef MD5_H
+#define MD5_H
+
+#include <stdint.h>
+#include <stddef.h>
+
+/**
+ * md5_sum - MD5 hash for a data block
+ * @addr: Pointers to the data area
+ * @len: Lengths of the data block
+ * @mac: Buffer for the hash
+ */
+void md5_sum(const uint8_t *addr, const size_t len, uint8_t *mac);
+
+#endif