#define MESSAGE ((const unsigned char *) "test")
#define MESSAGE_LEN 4
#define CIPHERTEXT_LEN (crypto_secretbox_MACBYTES + MESSAGE_LEN)
void dump_hex_buff(unsigned char buf[], unsigned int len)
{
int i;
for (i=0; i
https://stackoverflow.com/questions/51786187/encrypt-decrypt-secret-key-authenticated-encryption-in-libsodium-beginner