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. */ |
| 7 | #define MAX_AH_AUTH_LEN 12 |
| 8 | |
Steffen Klassert | 2ad9afb | 2009-10-07 22:49:57 +0000 | [diff] [blame^] | 9 | struct crypto_ahash; |
| 10 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | struct ah_data |
| 12 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | int icv_full_len; |
| 14 | int icv_trunc_len; |
| 15 | |
Steffen Klassert | 49cbf95 | 2009-10-07 22:47:16 +0000 | [diff] [blame] | 16 | struct crypto_ahash *ahash; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | }; |
| 18 | |
Herbert Xu | 87bdc48 | 2007-10-10 15:45:25 -0700 | [diff] [blame] | 19 | struct ip_auth_hdr; |
| 20 | |
| 21 | static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb) |
| 22 | { |
| 23 | return (struct ip_auth_hdr *)skb_transport_header(skb); |
| 24 | } |
| 25 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | #endif |