1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 21da177e4SLinus Torvalds #ifndef _NET_AH_H 31da177e4SLinus Torvalds #define _NET_AH_H 41da177e4SLinus Torvalds 52ad9afbfSSteffen Klassert #include <linux/skbuff.h> 61da177e4SLinus Torvalds 72ad9afbfSSteffen Klassert struct crypto_ahash; 82ad9afbfSSteffen Klassert 9fd2c3ef7SEric Dumazet struct ah_data { 101da177e4SLinus Torvalds int icv_full_len; 111da177e4SLinus Torvalds int icv_trunc_len; 121da177e4SLinus Torvalds 1349cbf952SSteffen Klassert struct crypto_ahash *ahash; 141da177e4SLinus Torvalds }; 151da177e4SLinus Torvalds 1687bdc48dSHerbert Xu struct ip_auth_hdr; 1787bdc48dSHerbert Xu ip_auth_hdr(const struct sk_buff * skb)1887bdc48dSHerbert Xustatic inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb) 1987bdc48dSHerbert Xu { 2087bdc48dSHerbert Xu return (struct ip_auth_hdr *)skb_transport_header(skb); 2187bdc48dSHerbert Xu } 2287bdc48dSHerbert Xu 231da177e4SLinus Torvalds #endif 24