Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
19
#include <stddef.h>
20
#include <
inttypes.h
>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
45
uint32_t djb2_hash(
const
uint8_t *buf,
size_t
len);
46
72
uint32_t sdbm_hash(
const
uint8_t *buf,
size_t
len);
73
99
uint32_t kr_hash(
const
uint8_t *buf,
size_t
len);
100
110
uint32_t sax_hash(
const
uint8_t *buf,
size_t
len);
111
125
uint32_t dek_hash(
const
uint8_t *buf,
size_t
len);
126
139
uint32_t fnv_hash(
const
uint8_t *buf,
size_t
len);
140
153
uint32_t rotating_hash(
const
uint8_t *buf,
size_t
len);
154
167
uint32_t one_at_a_time_hash(
const
uint8_t *buf,
size_t
len);
168
169
#ifdef __cplusplus
170
}
171
#endif
172
inttypes.h
Adds include for missing inttype definitions.
Generated on Mon Nov 24 2025 18:43:16 by
1.9.1