libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / crypto_box_curve25519xsalsa20poly1305.h
blobd7b48c0c36bee119999611988e9ff5320a4e9d98
1 #ifndef crypto_box_curve25519xsalsa20poly1305_H
2 #define crypto_box_curve25519xsalsa20poly1305_H
4 #include <stddef.h>
5 #include "export.h"
7 #define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32U
8 #define crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES 32U
9 #define crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES 32U
10 #define crypto_box_curve25519xsalsa20poly1305_NONCEBYTES 24U
11 #define crypto_box_curve25519xsalsa20poly1305_ZEROBYTES 32U
12 #define crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES 16U
13 #define crypto_box_curve25519xsalsa20poly1305_MACBYTES (crypto_box_curve25519xsalsa20poly1305_ZEROBYTES - crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES)
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
19 SODIUM_EXPORT
20 size_t crypto_box_curve25519xsalsa20poly1305_publickeybytes(void);
22 SODIUM_EXPORT
23 size_t crypto_box_curve25519xsalsa20poly1305_secretkeybytes(void);
25 SODIUM_EXPORT
26 size_t crypto_box_curve25519xsalsa20poly1305_beforenmbytes(void);
28 SODIUM_EXPORT
29 size_t crypto_box_curve25519xsalsa20poly1305_noncebytes(void);
31 SODIUM_EXPORT
32 size_t crypto_box_curve25519xsalsa20poly1305_zerobytes(void);
34 SODIUM_EXPORT
35 size_t crypto_box_curve25519xsalsa20poly1305_boxzerobytes(void);
37 SODIUM_EXPORT
38 size_t crypto_box_curve25519xsalsa20poly1305_macbytes(void);
40 SODIUM_EXPORT
41 const char * crypto_box_curve25519xsalsa20poly1305_primitive(void);
43 SODIUM_EXPORT
44 int crypto_box_curve25519xsalsa20poly1305(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *);
46 SODIUM_EXPORT
47 int crypto_box_curve25519xsalsa20poly1305_open(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *);
49 SODIUM_EXPORT
50 int crypto_box_curve25519xsalsa20poly1305_keypair(unsigned char *,unsigned char *);
52 SODIUM_EXPORT
53 int crypto_box_curve25519xsalsa20poly1305_beforenm(unsigned char *,const unsigned char *,const unsigned char *);
55 SODIUM_EXPORT
56 int crypto_box_curve25519xsalsa20poly1305_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
58 SODIUM_EXPORT
59 int crypto_box_curve25519xsalsa20poly1305_open_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
61 #ifdef __cplusplus
63 #endif
65 #define crypto_box_curve25519xsalsa20poly1305_ref crypto_box_curve25519xsalsa20poly1305
66 #define crypto_box_curve25519xsalsa20poly1305_ref_open crypto_box_curve25519xsalsa20poly1305_open
67 #define crypto_box_curve25519xsalsa20poly1305_ref_keypair crypto_box_curve25519xsalsa20poly1305_keypair
68 #define crypto_box_curve25519xsalsa20poly1305_ref_beforenm crypto_box_curve25519xsalsa20poly1305_beforenm
69 #define crypto_box_curve25519xsalsa20poly1305_ref_afternm crypto_box_curve25519xsalsa20poly1305_afternm
70 #define crypto_box_curve25519xsalsa20poly1305_ref_open_afternm crypto_box_curve25519xsalsa20poly1305_open_afternm
72 #endif