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