Blame view

include/net/ah.h 435 Bytes
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
  #ifndef _NET_AH_H
  #define _NET_AH_H
2ad9afbf5   Steffen Klassert   ah: Remove obsole...
3
  #include <linux/skbuff.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
4
5
  
  /* This is the maximum truncated ICV length that we know of. */
78d073694   Nicolas Dichtel   ipsec: update MAX...
6
  #define MAX_AH_AUTH_LEN	64
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7

2ad9afbf5   Steffen Klassert   ah: Remove obsole...
8
  struct crypto_ahash;
fd2c3ef76   Eric Dumazet   net: cleanup incl...
9
  struct ah_data {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
10
11
  	int			icv_full_len;
  	int			icv_trunc_len;
49cbf9524   Steffen Klassert   ah: Add struct cr...
12
  	struct crypto_ahash	*ahash;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
13
  };
87bdc48d3   Herbert Xu   [IPSEC]: Get rid ...
14
15
16
17
18
19
  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);
  }
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
20
  #endif