diff options
| author | David S. Miller <davem@davemloft.net> | 2011-08-03 22:45:10 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-15 21:31:35 -0400 |
| commit | 2468b895fc7dcbc436cb02f0707ab8d7cb2f0aa7 (patch) | |
| tree | 06fad85c0ac37b8f7221388b836b8e3c4b8aa225 /include/linux | |
| parent | c1c741511cbe9fe55257959a83d1fa4361afc5dd (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/linux')
| -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 ec78a4bbe1d..d2984fbebbc 100644 --- a/include/linux/cryptohash.h +++ b/include/linux/cryptohash.h | |||
| @@ -8,6 +8,11 @@ | |||
| 8 | void sha_init(__u32 *buf); | 8 | void sha_init(__u32 *buf); |
| 9 | void sha_transform(__u32 *digest, const char *data, __u32 *W); | 9 | void sha_transform(__u32 *digest, const char *data, __u32 *W); |
| 10 | 10 | ||
| 11 | #define MD5_DIGEST_WORDS 4 | ||
| 12 | #define MD5_MESSAGE_BYTES 64 | ||
| 13 | |||
| 14 | void md5_transform(__u32 *hash, __u32 const *in); | ||
| 15 | |||
| 11 | __u32 half_md4_transform(__u32 buf[4], __u32 const in[8]); | 16 | __u32 half_md4_transform(__u32 buf[4], __u32 const in[8]); |
| 12 | 17 | ||
| 13 | #endif | 18 | #endif |
