ah.h 435 B

1234567891011121314151617181920212223242526
  1. #ifndef _NET_AH_H
  2. #define _NET_AH_H
  3. #include <linux/skbuff.h>
  4. /* This is the maximum truncated ICV length that we know of. */
  5. #define MAX_AH_AUTH_LEN 64
  6. struct crypto_ahash;
  7. struct ah_data {
  8. int icv_full_len;
  9. int icv_trunc_len;
  10. struct crypto_ahash *ahash;
  11. };
  12. struct ip_auth_hdr;
  13. static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb)
  14. {
  15. return (struct ip_auth_hdr *)skb_transport_header(skb);
  16. }
  17. #endif