libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_onetimeauth / crypto_onetimeauth.c
blob19c6e71b3eae988d73832b7bfef8c136643b04a5
2 #include "crypto_onetimeauth.h"
4 size_t
5 crypto_onetimeauth_bytes(void)
7 return crypto_onetimeauth_BYTES;
10 size_t
11 crypto_onetimeauth_keybytes(void)
13 return crypto_onetimeauth_KEYBYTES;
16 const char *
17 crypto_onetimeauth_primitive(void)
19 return crypto_onetimeauth_PRIMITIVE;
22 int
23 crypto_onetimeauth(unsigned char *out, const unsigned char *in,
24 unsigned long long inlen, const unsigned char *k)
26 return crypto_onetimeauth_poly1305(out, in, inlen, k);
29 int
30 crypto_onetimeauth_verify(const unsigned char *h, const unsigned char *in,
31 unsigned long long inlen, const unsigned char *k)
33 return crypto_onetimeauth_poly1305_verify(h, in, inlen, k);