b68b58a46866534018bd44dfa428f62a1721baa2
[trex.git] /
1
2 #include "crypto_shorthash.h"
3
4 size_t
5 crypto_shorthash_bytes(void)
6 {
7     return crypto_shorthash_BYTES;
8 }
9
10 size_t
11 crypto_shorthash_keybytes(void)
12 {
13     return crypto_shorthash_KEYBYTES;
14 }
15
16 const char *
17 crypto_shorthash_primitive(void)
18 {
19     return crypto_shorthash_PRIMITIVE;
20 }
21
22 int
23 crypto_shorthash(unsigned char *out, const unsigned char *in,
24                  unsigned long long inlen, const unsigned char *k)
25 {
26     return crypto_shorthash_siphash24(out, in, inlen, k);
27 }