libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / crypto_secretbox_xsalsa20poly1305.h
blob22f0d66786d314bf288ffa0796decd31531b5355
1 #ifndef crypto_secretbox_xsalsa20poly1305_H
2 #define crypto_secretbox_xsalsa20poly1305_H
4 #include <stddef.h>
5 #include "export.h"
7 #define crypto_secretbox_xsalsa20poly1305_KEYBYTES 32U
8 #define crypto_secretbox_xsalsa20poly1305_NONCEBYTES 24U
9 #define crypto_secretbox_xsalsa20poly1305_ZEROBYTES 32U
10 #define crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES 16U
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
16 SODIUM_EXPORT
17 size_t crypto_secretbox_xsalsa20poly1305_keybytes(void);
19 SODIUM_EXPORT
20 size_t crypto_secretbox_xsalsa20poly1305_noncebytes(void);
22 SODIUM_EXPORT
23 size_t crypto_secretbox_xsalsa20poly1305_zerobytes(void);
25 SODIUM_EXPORT
26 size_t crypto_secretbox_xsalsa20poly1305_boxzerobytes(void);
28 SODIUM_EXPORT
29 const char * crypto_secretbox_xsalsa20poly1305_primitive(void);
31 SODIUM_EXPORT
32 int crypto_secretbox_xsalsa20poly1305(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
34 SODIUM_EXPORT
35 int crypto_secretbox_xsalsa20poly1305_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
37 #ifdef __cplusplus
39 #endif
41 #define crypto_secretbox_xsalsa20poly1305_ref crypto_secretbox_xsalsa20poly1305
42 #define crypto_secretbox_xsalsa20poly1305_ref_open crypto_secretbox_xsalsa20poly1305_open
44 #endif