summaryrefslogtreecommitdiff
path: root/nacl/crypto_box/curve25519xsalsa20poly1305/ref/after.c
diff options
context:
space:
mode:
Diffstat (limited to 'nacl/crypto_box/curve25519xsalsa20poly1305/ref/after.c')
-rw-r--r--nacl/crypto_box/curve25519xsalsa20poly1305/ref/after.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/nacl/crypto_box/curve25519xsalsa20poly1305/ref/after.c b/nacl/crypto_box/curve25519xsalsa20poly1305/ref/after.c
new file mode 100644
index 00000000..eb243e22
--- /dev/null
+++ b/nacl/crypto_box/curve25519xsalsa20poly1305/ref/after.c
@@ -0,0 +1,22 @@
1#include "crypto_secretbox_xsalsa20poly1305.h"
2#include "crypto_box.h"
3
4int 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
9)
10{
11 return crypto_secretbox_xsalsa20poly1305(c,m,mlen,n,k);
12}
13
14int 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
19)
20{
21 return crypto_secretbox_xsalsa20poly1305_open(m,c,clen,n,k);
22}