libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_auth / crypto_auth.c
blobe76b149471b4c45eaee27ddd37be9c31d2c80a05
2 #include "crypto_auth.h"
4 size_t
5 crypto_auth_bytes(void)
7 return crypto_auth_BYTES;
10 size_t
11 crypto_auth_keybytes(void)
13 return crypto_auth_KEYBYTES;
16 const char *
17 crypto_auth_primitive(void)
19 return crypto_auth_PRIMITIVE;
22 int
23 crypto_auth(unsigned char *out, const unsigned char *in,
24 unsigned long long inlen, const unsigned char *k)
26 return crypto_auth_hmacsha512256(out, in, inlen, k);
29 int
30 crypto_auth_verify(const unsigned char *h, const unsigned char *in,
31 unsigned long long inlen,const unsigned char *k)
33 return crypto_auth_hmacsha512256_verify(h, in, inlen, k);