|
|
@ -21,14 +21,6 @@ size_t crypto_secretbox_keybytes(void); |
|
|
|
SODIUM_EXPORT |
|
|
|
size_t crypto_secretbox_noncebytes(void); |
|
|
|
|
|
|
|
#define crypto_secretbox_ZEROBYTES crypto_secretbox_xsalsa20poly1305_ZEROBYTES |
|
|
|
SODIUM_EXPORT |
|
|
|
size_t crypto_secretbox_zerobytes(void); |
|
|
|
|
|
|
|
#define crypto_secretbox_BOXZEROBYTES crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES |
|
|
|
SODIUM_EXPORT |
|
|
|
size_t crypto_secretbox_boxzerobytes(void); |
|
|
|
|
|
|
|
#define crypto_secretbox_MACBYTES crypto_secretbox_xsalsa20poly1305_MACBYTES |
|
|
|
SODIUM_EXPORT |
|
|
|
size_t crypto_secretbox_macbytes(void); |
|
|
@ -37,16 +29,6 @@ size_t crypto_secretbox_macbytes(void); |
|
|
|
SODIUM_EXPORT |
|
|
|
const char *crypto_secretbox_primitive(void); |
|
|
|
|
|
|
|
SODIUM_EXPORT |
|
|
|
int crypto_secretbox(unsigned char *c, const unsigned char *m, |
|
|
|
unsigned long long mlen, const unsigned char *n, |
|
|
|
const unsigned char *k); |
|
|
|
|
|
|
|
SODIUM_EXPORT |
|
|
|
int crypto_secretbox_open(unsigned char *m, const unsigned char *c, |
|
|
|
unsigned long long clen, const unsigned char *n, |
|
|
|
const unsigned char *k); |
|
|
|
|
|
|
|
SODIUM_EXPORT |
|
|
|
int crypto_secretbox_easy(unsigned char *c, const unsigned char *m, |
|
|
|
unsigned long long mlen, const unsigned char *n, |
|
|
@ -71,6 +53,26 @@ int crypto_secretbox_open_detached(unsigned char *m, |
|
|
|
unsigned long long clen, |
|
|
|
const unsigned char *n, |
|
|
|
const unsigned char *k); |
|
|
|
|
|
|
|
/* -- NaCl compatibility interface ; Requires padding -- */ |
|
|
|
|
|
|
|
#define crypto_secretbox_ZEROBYTES crypto_secretbox_xsalsa20poly1305_ZEROBYTES |
|
|
|
SODIUM_EXPORT |
|
|
|
size_t crypto_secretbox_zerobytes(void); |
|
|
|
|
|
|
|
#define crypto_secretbox_BOXZEROBYTES crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES |
|
|
|
SODIUM_EXPORT |
|
|
|
size_t crypto_secretbox_boxzerobytes(void); |
|
|
|
|
|
|
|
SODIUM_EXPORT |
|
|
|
int crypto_secretbox(unsigned char *c, const unsigned char *m, |
|
|
|
unsigned long long mlen, const unsigned char *n, |
|
|
|
const unsigned char *k); |
|
|
|
|
|
|
|
SODIUM_EXPORT |
|
|
|
int crypto_secretbox_open(unsigned char *m, const unsigned char *c, |
|
|
|
unsigned long long clen, const unsigned char *n, |
|
|
|
const unsigned char *k); |
|
|
|
#ifdef __cplusplus |
|
|
|
} |
|
|
|
#endif |
|
|
|