| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 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 |