41 #ifndef CASCODA_HASH_H
42 #define CASCODA_HASH_H
51 static const uint64_t prime64 = 1099511628211ULL;
52 static const uint64_t basis64 = 14695981039346656037ULL;
62 uint32_t
HASH_fnv1a_32(
const void *data_in,
size_t num_bytes);
72 uint64_t
HASH_fnv1a_64(
const void *data_in,
size_t num_bytes);
96 uint32_t
HASH_CRC32(uint8_t *data, uint32_t dataLen);
void HASH_fnv1a_64_stream(const void *data_in, size_t num_bytes, uint64_t *hash)
Streaming version of HASH_fnv1a_64.
Definition: cascoda_hash.c:81
uint32_t HASH_fnv1a_32(const void *data_in, size_t num_bytes)
Calculate the 32-bit fnv1a non-crypto hash of a block of data.
Definition: cascoda_hash.c:60
uint32_t HASH_CRC32(uint8_t *data, uint32_t dataLen)
Calculate the CRC32 hash of a block of data.
Definition: cascoda_hash.c:93
uint64_t HASH_fnv1a_64(const void *data_in, size_t num_bytes)
Calculate the 64-bit fnv1a non-crypto hash of a block of data.
Definition: hid_transfer.c:224
void HASH_CRC32_stream(uint8_t *data, uint32_t dataLen, uint32_t *crc)
Streaming version of HASH_CRC32.
Definition: cascoda_hash.c:103