From 6ed5eaaac13540c1b9d5a7549b2c82aac91ba318 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Wed, 25 Jan 2017 10:25:36 -0800 Subject: Upgrade highwayhash The updated version contains a fix that makes hashing consistent when CPU endian changes. Fixed #6823 Change: 145563886 --- third_party/highwayhash.BUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 third_party/highwayhash.BUILD (limited to 'third_party/highwayhash.BUILD') diff --git a/third_party/highwayhash.BUILD b/third_party/highwayhash.BUILD new file mode 100644 index 0000000000..1b8e40765e --- /dev/null +++ b/third_party/highwayhash.BUILD @@ -0,0 +1,32 @@ +# Description: +# SipHash and HighwayHash: cryptographically-strong pseudorandom functions + +licenses(["notice"]) # Apache 2.0 + +exports_files(["LICENSE"]) + +cc_library( + name = "sip_hash", + srcs = ["highwayhash/sip_hash.cc"], + hdrs = [ + "highwayhash/sip_hash.h", + "highwayhash/state_helpers.h", + ], + visibility = ["//visibility:public"], + deps = [ + ":arch_specific", + ":compiler_specific", + ], +) + +cc_library( + name = "arch_specific", + srcs = ["highwayhash/arch_specific.cc"], + hdrs = ["highwayhash/arch_specific.h"], + deps = [":compiler_specific"], +) + +cc_library( + name = "compiler_specific", + hdrs = ["highwayhash/compiler_specific.h"], +) -- cgit v1.2.3