pex: track indirect hosts (reachable via gateway) as peers without adding them to wg
[project/unetd.git] / chacha20.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright (C) 2022 Felix Fietkau <nbd@nbd.name>
4 */
5 #ifndef __UNETD_CHACHA20_H
6 #define __UNETD_CHACHA20_H
7
8 #define CHACHA20_NONCE_SIZE 8
9 #define CHACHA20_KEY_SIZE 32
10
11 void chacha20_encrypt_msg(void *msg, size_t len, const void *nonce, const void *key);
12
13 #endif