/* SPDX-License-Identifier: GPL-2.0-only */ /* OpenVPN data channel accelerator * * Copyright (C) 2020- OpenVPN, Inc. * * Author: James Yonan * Antonio Quartulli */ #ifndef _NET_OVPN_DCO_OVPNAEAD_H_ #define _NET_OVPN_DCO_OVPNAEAD_H_ #include "crypto.h" #include #include struct crypto_aead *ovpn_aead_init(const char *title, const char *alg_name, const unsigned char *key, unsigned int keylen); int ovpn_aead_encrypt(struct ovpn_crypto_key_slot *ks, struct sk_buff *skb, u32 peer_id); int ovpn_aead_decrypt(struct ovpn_crypto_key_slot *ks, struct sk_buff *skb); struct ovpn_crypto_key_slot *ovpn_aead_crypto_key_slot_new(const struct ovpn_key_config *kc); void ovpn_aead_crypto_key_slot_destroy(struct ovpn_crypto_key_slot *ks); #endif /* _NET_OVPN_DCO_OVPNAEAD_H_ */