blob: be7798dea6f45c5841c8806a4751995c3fc13374 [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. */
Nicolas Dichtele44f3912011-01-11 08:06:19 +00007#define MAX_AH_AUTH_LEN 16
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
Steffen Klassert2ad9afb2009-10-07 22:49:57 +00009struct crypto_ahash;
10
Eric Dumazetfd2c3ef2009-11-03 03:26:03 +000011struct ah_data {
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 int icv_full_len;
13 int icv_trunc_len;
14
Steffen Klassert49cbf952009-10-07 22:47:16 +000015 struct crypto_ahash *ahash;
Linus Torvalds1da177e2005-04-16 15:20:36 -070016};
17
Herbert Xu87bdc482007-10-10 15:45:25 -070018struct ip_auth_hdr;
19
20static 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 Torvalds1da177e2005-04-16 15:20:36 -070025#endif