xref: /kernel/linux/linux-5.10/include/net/ah.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/include/net/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _NET_AH_H
38c2ecf20Sopenharmony_ci#define _NET_AH_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <linux/skbuff.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cistruct crypto_ahash;
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cistruct ah_data {
108c2ecf20Sopenharmony_ci	int			icv_full_len;
118c2ecf20Sopenharmony_ci	int			icv_trunc_len;
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci	struct crypto_ahash	*ahash;
148c2ecf20Sopenharmony_ci};
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_cistruct ip_auth_hdr;
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_cistatic inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb)
198c2ecf20Sopenharmony_ci{
208c2ecf20Sopenharmony_ci	return (struct ip_auth_hdr *)skb_transport_header(skb);
218c2ecf20Sopenharmony_ci}
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#endif
24

Indexes created Thu Nov 07 10:32:03 CST 2024