blob: 2d2dea521169b5cc7a4c898adbe647e4c9906058 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef _NET_AH_H
3#define _NET_AH_H
4
Steffen Klassert2ad9afb2009-10-07 22:49:57 +00005#include <linux/skbuff.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
Steffen Klassert2ad9afb2009-10-07 22:49:57 +00007struct crypto_ahash;
8
Eric Dumazetfd2c3ef2009-11-03 03:26:03 +00009struct ah_data {
Linus Torvalds1da177e2005-04-16 15:20:36 -070010 int icv_full_len;
11 int icv_trunc_len;
12
Steffen Klassert49cbf952009-10-07 22:47:16 +000013 struct crypto_ahash *ahash;
Linus Torvalds1da177e2005-04-16 15:20:36 -070014};
15
Herbert Xu87bdc482007-10-10 15:45:25 -070016struct ip_auth_hdr;
17
18static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb)
19{
20 return (struct ip_auth_hdr *)skb_transport_header(skb);
21}
22
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#endif