aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/cryptohash.h1
-rw-r--r--include/net/tcp.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/cryptohash.h b/include/linux/cryptohash.h
index c118b2ad9807..ec78a4bbe1d5 100644
--- a/include/linux/cryptohash.h
+++ b/include/linux/cryptohash.h
@@ -2,6 +2,7 @@
2#define __CRYPTOHASH_H 2#define __CRYPTOHASH_H
3 3
4#define SHA_DIGEST_WORDS 5 4#define SHA_DIGEST_WORDS 5
5#define SHA_MESSAGE_BYTES (512 /*bits*/ / 8)
5#define SHA_WORKSPACE_WORDS 80 6#define SHA_WORKSPACE_WORDS 80
6 7
7void sha_init(__u32 *buf); 8void sha_init(__u32 *buf);
diff --git a/include/net/tcp.h b/include/net/tcp.h
index ec183fda05d0..4a99a8e39121 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1478,6 +1478,14 @@ struct tcp_request_sock_ops {
1478#endif 1478#endif
1479}; 1479};
1480 1480
1481/* Using SHA1 for now, define some constants.
1482 */
1483#define COOKIE_DIGEST_WORDS (SHA_DIGEST_WORDS)
1484#define COOKIE_MESSAGE_WORDS (SHA_MESSAGE_BYTES / 4)
1485#define COOKIE_WORKSPACE_WORDS (COOKIE_DIGEST_WORDS + COOKIE_MESSAGE_WORDS)
1486
1487extern int tcp_cookie_generator(u32 *bakery);
1488
1481extern void tcp_v4_init(void); 1489extern void tcp_v4_init(void);
1482extern void tcp_init(void); 1490extern void tcp_init(void);
1483 1491