Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Main Page
Related Pages
Modules
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
d
e
f
g
h
j
l
m
n
o
p
r
s
t
u
w
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
g
h
i
k
l
m
n
p
q
r
s
t
u
v
x
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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
20
#ifndef HASHES_H
21
#define HASHES_H
22
23
#include <stddef.h>
24
#include <
inttypes.h
>
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
49
uint32_t djb2_hash(
const
uint8_t *buf,
size_t
len);
50
76
uint32_t sdbm_hash(
const
uint8_t *buf,
size_t
len);
77
103
uint32_t kr_hash(
const
uint8_t *buf,
size_t
len);
104
114
uint32_t sax_hash(
const
uint8_t *buf,
size_t
len);
115
129
uint32_t dek_hash(
const
uint8_t *buf,
size_t
len);
130
143
uint32_t fnv_hash(
const
uint8_t *buf,
size_t
len);
144
145
158
uint32_t rotating_hash(
const
uint8_t *buf,
size_t
len);
159
172
uint32_t one_at_a_time_hash(
const
uint8_t *buf,
size_t
len);
173
174
#ifdef __cplusplus
175
}
176
#endif
177
179
#endif
/* HASHES_H */
inttypes.h
Adds include for missing inttype definitions.
Generated on Tue Nov 24 2020 19:46:52 by
1.8.17