diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-13 03:20:53 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-16 06:35:58 +0100 |
commit | 986a8046a2b297279569ebd160a5410f8f195185 (patch) | |
tree | 282abc5d74b64060c52c936177bcb3e9ddf054b0 /src/hashtables.h | |
parent | tools: fix latest-handshake typo in documentation (diff) | |
download | wireguard-monolithic-historical-986a8046a2b297279569ebd160a5410f8f195185.tar.xz wireguard-monolithic-historical-986a8046a2b297279569ebd160a5410f8f195185.zip |
siphash: update against upstream submission
Diffstat (limited to 'src/hashtables.h')
-rw-r--r-- | src/hashtables.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hashtables.h b/src/hashtables.h index fd3ff8b..6418316 100644 --- a/src/hashtables.h +++ b/src/hashtables.h @@ -4,7 +4,7 @@ #define HASHTABLES_H #include "messages.h" -#include "crypto/siphash24.h" +#include "crypto/siphash.h" #include <linux/hashtable.h> #include <linux/mutex.h> @@ -13,7 +13,7 @@ struct wireguard_peer; struct pubkey_hashtable { DECLARE_HASHTABLE(hashtable, 8); - u8 key[SIPHASH24_KEY_LEN]; + siphash_key_t key; struct mutex lock; }; @@ -24,7 +24,7 @@ struct wireguard_peer *pubkey_hashtable_lookup(struct pubkey_hashtable *table, c struct index_hashtable { DECLARE_HASHTABLE(hashtable, 10); - u8 key[SIPHASH24_KEY_LEN]; + siphash_key_t key; spinlock_t lock; }; |