1 #ifndef crypto_secretbox_H
2 #define crypto_secretbox_H
6 #include "crypto_secretbox_xsalsa20poly1305.h"
13 #define crypto_secretbox_KEYBYTES crypto_secretbox_xsalsa20poly1305_KEYBYTES
15 size_t crypto_secretbox_keybytes(void);
17 #define crypto_secretbox_NONCEBYTES crypto_secretbox_xsalsa20poly1305_NONCEBYTES
19 size_t crypto_secretbox_noncebytes(void);
21 #define crypto_secretbox_ZEROBYTES crypto_secretbox_xsalsa20poly1305_ZEROBYTES
23 size_t crypto_secretbox_zerobytes(void);
25 #define crypto_secretbox_BOXZEROBYTES crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES
27 size_t crypto_secretbox_boxzerobytes(void);
29 #define crypto_secretbox_PRIMITIVE "xsalsa20poly1305"
31 const char *crypto_secretbox_primitive(void);
34 int crypto_secretbox(unsigned char *c
, const unsigned char *m
,
35 unsigned long long mlen
, const unsigned char *n
,
36 const unsigned char *k
);
39 int crypto_secretbox_open(unsigned char *m
, const unsigned char *c
,
40 unsigned long long clen
, const unsigned char *n
,
41 const unsigned char *k
);