xref: /freebsd/sys/contrib/libsodium/src/libsodium/crypto_hash/crypto_hash.c (revision 3611ec604864a7d4dcc9a3ea898c80eb35eef8a0)
1*0ac341f1SConrad Meyer 
2*0ac341f1SConrad Meyer #include "crypto_hash.h"
3*0ac341f1SConrad Meyer 
4*0ac341f1SConrad Meyer size_t
crypto_hash_bytes(void)5*0ac341f1SConrad Meyer crypto_hash_bytes(void)
6*0ac341f1SConrad Meyer {
7*0ac341f1SConrad Meyer     return crypto_hash_BYTES;
8*0ac341f1SConrad Meyer }
9*0ac341f1SConrad Meyer 
10*0ac341f1SConrad Meyer int
crypto_hash(unsigned char * out,const unsigned char * in,unsigned long long inlen)11*0ac341f1SConrad Meyer crypto_hash(unsigned char *out, const unsigned char *in,
12*0ac341f1SConrad Meyer             unsigned long long inlen)
13*0ac341f1SConrad Meyer {
14*0ac341f1SConrad Meyer     return crypto_hash_sha512(out, in, inlen);
15*0ac341f1SConrad Meyer }
16*0ac341f1SConrad Meyer 
17*0ac341f1SConrad Meyer const char *
crypto_hash_primitive(void)18*0ac341f1SConrad Meyer crypto_hash_primitive(void) {
19*0ac341f1SConrad Meyer     return crypto_hash_PRIMITIVE;
20*0ac341f1SConrad Meyer }
21