2019-09-25 15:37:26 +02:00
|
|
|
#ifndef CRYPTO_HASH_H
|
|
|
|
#define CRYPTO_HASH_H
|
|
|
|
|
|
|
|
#include "../kerncompat.h"
|
|
|
|
|
|
|
|
#define CRYPTO_HASH_SIZE_MAX 32
|
|
|
|
|
2019-06-10 14:56:11 +02:00
|
|
|
int hash_crc32c(const u8 *buf, size_t length, u8 *out);
|
2019-09-25 15:37:26 +02:00
|
|
|
int hash_xxhash(const u8 *buf, size_t length, u8 *out);
|
2019-10-07 13:13:26 +02:00
|
|
|
int hash_sha256(const u8 *buf, size_t length, u8 *out);
|
2019-10-07 18:19:51 +02:00
|
|
|
int hash_blake2b(const u8 *buf, size_t length, u8 *out);
|
2019-09-25 15:37:26 +02:00
|
|
|
|
|
|
|
#endif
|