ah.h 382 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _NET_AH_H
  3. #define _NET_AH_H
  4. #include <linux/skbuff.h>
  5. struct crypto_ahash;
  6. struct ah_data {
  7. int icv_full_len;
  8. int icv_trunc_len;
  9. struct crypto_ahash *ahash;
  10. };
  11. struct ip_auth_hdr;
  12. static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb)
  13. {
  14. return (struct ip_auth_hdr *)skb_transport_header(skb);
  15. }
  16. #endif