mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 08:18:03 +02:00
shared: add NM_HASH_SEED_16() macro
(cherry picked from commit 72e0b522ff)
This commit is contained in:
parent
cf42e51880
commit
f3c2c07e37
1 changed files with 3 additions and 0 deletions
|
|
@ -26,6 +26,9 @@
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
#define NM_HASH_SEED_16(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af) \
|
||||||
|
((const guint8[16]) { a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af })
|
||||||
|
|
||||||
void nm_hash_siphash42_init (CSipHash *h, guint static_seed);
|
void nm_hash_siphash42_init (CSipHash *h, guint static_seed);
|
||||||
|
|
||||||
/* Siphash24 of binary buffer @arr and @len, using the randomized seed from
|
/* Siphash24 of binary buffer @arr and @len, using the randomized seed from
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue