repo.or.cz
/
tor.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
protover: Fix old tor hardcoded version check
[tor.git]
/
src
/
ext
/
siphash.h
blob
d9b34b8980f43dae70ab72d5fca5c354f993b210
1
#ifndef SIPHASH_H
2
#define SIPHASH_H
3
4
struct
sipkey
{
5
uint64_t
k0
;
6
uint64_t
k1
;
7
};
8
uint64_t
siphash24
(
const void
*
src
,
unsigned long
src_sz
,
const struct
sipkey
*
key
);
9
10
void
siphash_set_global_key
(
const struct
sipkey
*
key
);
11
uint64_t
siphash24g
(
const void
*
src
,
unsigned long
src_sz
);
12
13
#endif