blob: 4e2dfa474a7e6e8deaeb56ec2a9115345141ac58 [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
Steffen Klassert2ad9afb2009-10-07 22:49:57 +00006struct crypto_ahash;
7
Eric Dumazetfd2c3ef2009-11-03 03:26:03 +00008struct ah_data {
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 int icv_full_len;
10 int icv_trunc_len;
11
Steffen Klassert49cbf952009-10-07 22:47:16 +000012 struct crypto_ahash *ahash;
Linus Torvalds1da177e2005-04-16 15:20:36 -070013};
14
Herbert Xu87bdc482007-10-10 15:45:25 -070015struct ip_auth_hdr;
16
17static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb)
18{
19 return (struct ip_auth_hdr *)skb_transport_header(skb);
20}
21
Linus Torvalds1da177e2005-04-16 15:20:36 -070022#endif