Move all of the hashing classes/functions to zeek::detail namespace

This commit is contained in:
Tim Wojtulewicz 2020-07-21 13:34:17 -07:00
parent 93948b4d19
commit a2a435360a
40 changed files with 289 additions and 234 deletions

View file

@ -13,6 +13,8 @@
#include "highwayhash/highwayhash_target.h"
#include "highwayhash/instruction_sets.h"
namespace zeek::detail {
alignas(32) uint64_t KeyedHash::shared_highwayhash_key[4];
alignas(32) uint64_t KeyedHash::cluster_highwayhash_key[4];
alignas(16) unsigned long long KeyedHash::shared_siphash_key[2];
@ -214,3 +216,5 @@ hash_t HashKey::HashBytes(const void* bytes, int size)
{
return KeyedHash::Hash64(bytes, size);
}
} // namespace zeek::detail