libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_box / curve25519xsalsa20poly1305 / ref / after_curve25519xsalsa20poly1305.c
bloba830936bd454e9fc38209315f53022b6fdb9815f
1 #include "api.h"
2 #include "crypto_secretbox_xsalsa20poly1305.h"
4 int crypto_box_afternm(
5 unsigned char *c,
6 const unsigned char *m,unsigned long long mlen,
7 const unsigned char *n,
8 const unsigned char *k
11 return crypto_secretbox_xsalsa20poly1305(c,m,mlen,n,k);
14 int crypto_box_open_afternm(
15 unsigned char *m,
16 const unsigned char *c,unsigned long long clen,
17 const unsigned char *n,
18 const unsigned char *k
21 return crypto_secretbox_xsalsa20poly1305_open(m,c,clen,n,k);