Loading...
Searching...
No Matches
hashes.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2013 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#include <stddef.h>
20#include <inttypes.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
45uint32_t djb2_hash(const uint8_t *buf, size_t len);
46
72uint32_t sdbm_hash(const uint8_t *buf, size_t len);
73
99uint32_t kr_hash(const uint8_t *buf, size_t len);
100
110uint32_t sax_hash(const uint8_t *buf, size_t len);
111
125uint32_t dek_hash(const uint8_t *buf, size_t len);
126
139uint32_t fnv_hash(const uint8_t *buf, size_t len);
140
153uint32_t rotating_hash(const uint8_t *buf, size_t len);
154
167uint32_t one_at_a_time_hash(const uint8_t *buf, size_t len);
168
169#ifdef __cplusplus
170}
171#endif
172
Adds include for missing inttype definitions.