Debian Codegraph @

drivers/net/ovpn-dco/crypto_aead.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* OpenVPN data channel accelerator
3 *
4 * Copyright (C) 2020- OpenVPN, Inc.
5 *
6 * Author: James Yonan <[email protected]>
7 * Antonio Quartulli <[email protected]>
8 */
9
10 #ifndef _NET_OVPN_DCO_OVPNAEAD_H_
11 #define _NET_OVPN_DCO_OVPNAEAD_H_
12
13 #include "crypto.h"
14
15 #include <asm/types.h>
16 #include <linux/skbuff.h>
17
18 struct crypto_aead *ovpn_aead_init(const char *title, const char *alg_name,
19 const unsigned char *key, unsigned int keylen);
20
21 int ovpn_aead_encrypt(struct ovpn_crypto_key_slot *ks, struct sk_buff *skb, u32 peer_id);
22 int ovpn_aead_decrypt(struct ovpn_crypto_key_slot *ks, struct sk_buff *skb);
23
24 struct ovpn_crypto_key_slot *ovpn_aead_crypto_key_slot_new(const struct ovpn_key_config *kc);
25 void ovpn_aead_crypto_key_slot_destroy(struct ovpn_crypto_key_slot *ks);
26
27 #endif /* _NET_OVPN_DCO_OVPNAEAD_H_ */