libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_stream / crypto_stream.c
blob50a9c1c025e12000ef9f7dc63db8d84da9819cf3
2 #include "crypto_stream.h"
4 size_t
5 crypto_stream_keybytes(void)
7 return crypto_stream_KEYBYTES;
10 size_t
11 crypto_stream_noncebytes(void)
13 return crypto_stream_NONCEBYTES;
16 const char *
17 crypto_stream_primitive(void)
19 return crypto_stream_PRIMITIVE;
22 int
23 crypto_stream(unsigned char *c, unsigned long long clen,
24 const unsigned char *n, const unsigned char *k)
26 return crypto_stream_xsalsa20(c, clen, n, k);
30 int
31 crypto_stream_xor(unsigned char *c, const unsigned char *m,
32 unsigned long long mlen, const unsigned char *n,
33 const unsigned char *k)
35 return crypto_stream_xsalsa20_xor(c, m, mlen, n, k);