Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _NET_AH_H |
2 | #define _NET_AH_H | ||||
3 | |||||
Steffen Klassert | 2ad9afb | 2009-10-07 22:49:57 +0000 | [diff] [blame] | 4 | #include <linux/skbuff.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
6 | /* This is the maximum truncated ICV length that we know of. */ | ||||
Nicolas Dichtel | e44f391 | 2011-01-11 08:06:19 +0000 | [diff] [blame^] | 7 | #define MAX_AH_AUTH_LEN 16 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
Steffen Klassert | 2ad9afb | 2009-10-07 22:49:57 +0000 | [diff] [blame] | 9 | struct crypto_ahash; |
10 | |||||
Eric Dumazet | fd2c3ef | 2009-11-03 03:26:03 +0000 | [diff] [blame] | 11 | struct ah_data { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | int icv_full_len; |
13 | int icv_trunc_len; | ||||
14 | |||||
Steffen Klassert | 49cbf95 | 2009-10-07 22:47:16 +0000 | [diff] [blame] | 15 | struct crypto_ahash *ahash; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | }; |
17 | |||||
Herbert Xu | 87bdc48 | 2007-10-10 15:45:25 -0700 | [diff] [blame] | 18 | struct ip_auth_hdr; |
19 | |||||
20 | static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb) | ||||
21 | { | ||||
22 | return (struct ip_auth_hdr *)skb_transport_header(skb); | ||||
23 | } | ||||
24 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | #endif |