diff options
author | David S. Miller <davem@davemloft.net> | 2011-08-03 19:45:10 -0700 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-05-17 11:21:27 -0400 |
commit | 5b2354949698f8b39468889393ebaa495b6ca852 (patch) | |
tree | d4273b41af19204f8d9438aa9317b011e5d03e00 /include | |
parent | 8fc7676bfb45d55222aa5f663f113f723b9197b8 (diff) |
crypto: Move md5_transform to lib/md5.c
commit bc0b96b54a21246e377122d54569eef71cec535f upstream.
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: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cryptohash.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/cryptohash.h b/include/linux/cryptohash.h index ec78a4bbe1d5..d2984fbebbc0 100644 --- a/include/linux/cryptohash.h +++ b/include/linux/cryptohash.h @@ -8,6 +8,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 |