aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/highwayhash.BUILD
diff options
context:
space:
mode:
authorGravatar Justine Tunney <jart@google.com>2017-01-25 10:25:36 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-25 10:48:48 -0800
commit6ed5eaaac13540c1b9d5a7549b2c82aac91ba318 (patch)
tree86d150ecf677ed9366b1a4832a3653b62eaae54c /third_party/highwayhash.BUILD
parent14a41dc135b79cbd809436fbd6942667099ef15f (diff)
Upgrade highwayhash
The updated version contains a fix that makes hashing consistent when CPU endian changes. Fixed #6823 Change: 145563886
Diffstat (limited to 'third_party/highwayhash.BUILD')
-rw-r--r--third_party/highwayhash.BUILD32
1 files changed, 32 insertions, 0 deletions
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"],
+)