libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_shorthash / crypto_shorthash.c
blobb68b58a46866534018bd44dfa428f62a1721baa2
2 #include "crypto_shorthash.h"
4 size_t
5 crypto_shorthash_bytes(void)
7 return crypto_shorthash_BYTES;
10 size_t
11 crypto_shorthash_keybytes(void)
13 return crypto_shorthash_KEYBYTES;
16 const char *
17 crypto_shorthash_primitive(void)
19 return crypto_shorthash_PRIMITIVE;
22 int
23 crypto_shorthash(unsigned char *out, const unsigned char *in,
24 unsigned long long inlen, const unsigned char *k)
26 return crypto_shorthash_siphash24(out, in, inlen, k);