summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-08-03 19:45:10 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-15 18:57:20 -0700
commitd792afea8908f0ce73dfd997c07560dddcc52581 (patch)
tree43273aa476b6b3938182c84f6ffb406ce041b37d /include
parent3481be7e555cf2a57ee4ea0962ae27a3d87a53d5 (diff)
crypto: Move md5_transform to lib/md5.c
We are going to use this for TCP/IP sequence number and fragment ID generation. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cryptohash.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/cryptohash.h b/include/linux/cryptohash.h
index c118b2ad9807..1ba279be5b7a 100644
--- a/include/linux/cryptohash.h
+++ b/include/linux/cryptohash.h
@@ -7,6 +7,11 @@
void sha_init(__u32 *buf);
void sha_transform(__u32 *digest, const char *data, __u32 *W);
+#define MD5_DIGEST_WORDS 4
+#define MD5_MESSAGE_BYTES 64
+
+void md5_transform(__u32 *hash, __u32 const *in);
+
__u32 half_md4_transform(__u32 buf[4], __u32 const in[8]);
#endif