summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-07-31 10:08:41 +0200
committerThomas Haller <thaller@redhat.com>2019-07-31 10:11:13 +0200
commit72e0b522ff8a7f3e9b4c20aa29d6b179a616c5f4 (patch)
tree407f9fc40839885eeb4e959aa9e5b07a0a23ec11
parent577769b98384f7f93480a90031a407a51347aab5 (diff)
downloadNetworkManager-72e0b522ff8a7f3e9b4c20aa29d6b179a616c5f4.tar.gz
shared: add NM_HASH_SEED_16() macro
-rw-r--r--shared/nm-glib-aux/nm-hash-utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/nm-glib-aux/nm-hash-utils.h b/shared/nm-glib-aux/nm-hash-utils.h
index f13e0b6d56..aa0a3d7c0a 100644
--- a/shared/nm-glib-aux/nm-hash-utils.h
+++ b/shared/nm-glib-aux/nm-hash-utils.h
@@ -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);
/* Siphash24 of binary buffer @arr and @len, using the randomized seed from