aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tensorflow/workspace.bzl11
-rw-r--r--third_party/highwayhash.BUILD32
2 files changed, 38 insertions, 5 deletions
diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
index 8c1cccc44e..c60f547b39 100644
--- a/tensorflow/workspace.bzl
+++ b/tensorflow/workspace.bzl
@@ -125,14 +125,15 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
actual = "@farmhash//:farmhash",
)
- native.http_archive(
+ native.new_http_archive(
name = "highwayhash",
urls = [
- "http://bazel-mirror.storage.googleapis.com/github.com/google/highwayhash/archive/4bce8fc6a9ca454d9d377dbc4c4d33488bbab78f.tar.gz",
- "https://github.com/google/highwayhash/archive/4bce8fc6a9ca454d9d377dbc4c4d33488bbab78f.tar.gz",
+ "http://bazel-mirror.storage.googleapis.com/github.com/google/highwayhash/archive/dfcb97ca4fe9277bf9dc1802dd979b071896453b.tar.gz",
+ "https://github.com/google/highwayhash/archive/dfcb97ca4fe9277bf9dc1802dd979b071896453b.tar.gz",
],
- sha256 = "b159a62fb05e5f6a6be20aa0df6a951ebf44a7bb96ed2e819e4e35e17f56854d",
- strip_prefix = "highwayhash-4bce8fc6a9ca454d9d377dbc4c4d33488bbab78f",
+ sha256 = "0f30a15b1566d93f146c8d149878a06e91d9bb7ec2cfd76906df62a82be4aac9",
+ strip_prefix = "highwayhash-dfcb97ca4fe9277bf9dc1802dd979b071896453b",
+ build_file = str(Label("//third_party:highwayhash.BUILD")),
)
native.new_http_archive(
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"],
+)