Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
hashes.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2013 Freie Universität Berlin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
9
#pragma once
10
21
22
#include <stddef.h>
23
#include <
inttypes.h
>
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
48
uint32_t djb2_hash(
const
uint8_t *buf,
size_t
len);
49
75
uint32_t sdbm_hash(
const
uint8_t *buf,
size_t
len);
76
102
uint32_t kr_hash(
const
uint8_t *buf,
size_t
len);
103
113
uint32_t sax_hash(
const
uint8_t *buf,
size_t
len);
114
128
uint32_t dek_hash(
const
uint8_t *buf,
size_t
len);
129
142
uint32_t fnv_hash(
const
uint8_t *buf,
size_t
len);
143
156
uint32_t rotating_hash(
const
uint8_t *buf,
size_t
len);
157
170
uint32_t one_at_a_time_hash(
const
uint8_t *buf,
size_t
len);
171
172
#ifdef __cplusplus
173
}
174
#endif
175
inttypes.h
Adds include for missing inttype definitions.
Generated on Fri Jul 4 2025 11:20:35 by
1.13.2