blob: 7573a7152a721d893fb80cd3356b8af635e43bce [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _NET_AH_H
2#define _NET_AH_H
3
Steffen Klassert2ad9afb2009-10-07 22:49:57 +00004#include <linux/skbuff.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
6/* This is the maximum truncated ICV length that we know of. */
7#define MAX_AH_AUTH_LEN 12
8
Steffen Klassert2ad9afb2009-10-07 22:49:57 +00009struct crypto_ahash;
10
Linus Torvalds1da177e2005-04-16 15:20:36 -070011struct ah_data
12{
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 int icv_full_len;
14 int icv_trunc_len;
15
Steffen Klassert49cbf952009-10-07 22:47:16 +000016 struct crypto_ahash *ahash;
Linus Torvalds1da177e2005-04-16 15:20:36 -070017};
18
Herbert Xu87bdc482007-10-10 15:45:25 -070019struct ip_auth_hdr;
20
21static 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 Torvalds1da177e2005-04-16 15:20:36 -070026#endif