Wrap crypto_shorthash

This commit is contained in:
Frank Denis 2013-04-19 18:20:11 +02:00
parent c46e08585b
commit 83a3892209
3 changed files with 13 additions and 1 deletions

View File

@ -51,6 +51,7 @@ libsodium_la_SOURCES = \
crypto_secretbox/crypto_secretbox.c \
crypto_secretbox/xsalsa20poly1305/ref/api.h \
crypto_secretbox/xsalsa20poly1305/ref/box_xsalsa20poly1305.c \
crypto_shorthash/crypto_shorthash.c \
crypto_shorthash/siphash24/ref/api.h \
crypto_shorthash/siphash24/ref/shorthash_siphash24.c \
crypto_sign/ed25519/ref10/base.h \

View File

@ -0,0 +1,9 @@
#include "crypto_shorthash.h"
int
crypto_shorthash(unsigned char *out, const unsigned char *in,
unsigned long long inlen, const unsigned char *k)
{
return crypto_shorthash_siphash24(out, in, inlen, k);
}

View File

@ -3,9 +3,11 @@
#include "crypto_shorthash_siphash24.h"
#define crypto_shorthash crypto_shorthash_siphash24
#define crypto_shorthash_BYTES crypto_shorthash_siphash24_BYTES
#define crypto_shorthash_KEYBYTES crypto_shorthash_siphash24_KEYBYTES
#define crypto_shorthash_PRIMITIVE "siphash24"
int crypto_shorthash(unsigned char *out, const unsigned char *in,
unsigned long long inlen, const unsigned char *k);
#endif