2005-04-16 22:20:36 +00:00
|
|
|
#ifndef _NET_AH_H
|
|
|
|
#define _NET_AH_H
|
|
|
|
|
2009-10-07 22:49:57 +00:00
|
|
|
#include <linux/skbuff.h>
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
/* This is the maximum truncated ICV length that we know of. */
|
2011-01-11 08:06:19 +00:00
|
|
|
#define MAX_AH_AUTH_LEN 16
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2009-10-07 22:49:57 +00:00
|
|
|
struct crypto_ahash;
|
|
|
|
|
2009-11-03 03:26:03 +00:00
|
|
|
struct ah_data {
|
2005-04-16 22:20:36 +00:00
|
|
|
int icv_full_len;
|
|
|
|
int icv_trunc_len;
|
|
|
|
|
2009-10-07 22:47:16 +00:00
|
|
|
struct crypto_ahash *ahash;
|
2005-04-16 22:20:36 +00:00
|
|
|
};
|
|
|
|
|
2007-10-10 22:45:25 +00:00
|
|
|
struct ip_auth_hdr;
|
|
|
|
|
|
|
|
static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb)
|
|
|
|
{
|
|
|
|
return (struct ip_auth_hdr *)skb_transport_header(skb);
|
|
|
|
}
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif
|