mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-08 22:12:50 +00:00
23 lines
501 B
C
23 lines
501 B
C
|
#include "crypto_secretbox_xsalsa20poly1305.h"
|
||
|
#include "crypto_box.h"
|
||
|
|
||
|
int crypto_box_afternm(
|
||
|
unsigned char *c,
|
||
|
const unsigned char *m,unsigned long long mlen,
|
||
|
const unsigned char *n,
|
||
|
const unsigned char *k
|
||
|
)
|
||
|
{
|
||
|
return crypto_secretbox_xsalsa20poly1305(c,m,mlen,n,k);
|
||
|
}
|
||
|
|
||
|
int crypto_box_open_afternm(
|
||
|
unsigned char *m,
|
||
|
const unsigned char *c,unsigned long long clen,
|
||
|
const unsigned char *n,
|
||
|
const unsigned char *k
|
||
|
)
|
||
|
{
|
||
|
return crypto_secretbox_xsalsa20poly1305_open(m,c,clen,n,k);
|
||
|
}
|