Permalink
Browse files

Add chacha20_poly1305 and xchacha20_poly1305 deps to Go bazel build r…

…ules.

PiperOrigin-RevId: 212532446
GitOrigin-RevId: 7fc5b9736cc8179cbb1852a78773287d700ebe61
  • Loading branch information...
chuckx committed Sep 11, 2018
1 parent b32d402 commit 0dda36fe2d0086b5d6fcc8ee142bc18175f2bfbd
Showing with 32 additions and 3 deletions.
  1. +13 −1 WORKSPACE
  2. +5 −0 go/aead/BUILD.bazel
  3. +14 −2 go/subtle/aead/BUILD.bazel
View
@@ -583,6 +583,18 @@ http_archive(
sha256 = "4b14d8dd31c6dbaf3ff871adcd03f28c3274e42abc855cb8fb4d01233c0154dc",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains", "go_repository")
go_rules_dependencies()
go_register_toolchains()
go_repository(
name = "org_golang_x_crypto",
commit = "0e37d006457bf46f9e6692014ba72ef82c33022c",
importpath = "golang.org/x/crypto",
)
go_repository(
name = "org_golang_x_sys",
commit = "d0be0721c37eeb5299f245a996a483160fc36940",
importpath = "golang.org/x/sys",
)
View
@@ -8,6 +8,7 @@ go_library(
"aead_key_templates.go",
"aes_gcm_key_manager.go",
"proto_util.go",
"xchacha20poly1305_key_manager.go",
],
importpath = "github.com/google/tink/go/aead",
visibility = ["//visibility:public"],
@@ -17,7 +18,9 @@ go_library(
"//go/tink:go_default_library",
"//proto:aes_gcm_go_proto",
"//proto:tink_go_proto",
"//proto:xchacha20_poly1305_go_proto",
"@com_github_golang_protobuf//proto:go_default_library",
"@org_golang_x_crypto//chacha20poly1305:go_default_library",
],
)
@@ -37,6 +40,8 @@ go_test(
"//go/tink:go_default_library",
"//proto:aes_gcm_go_proto",
"//proto:tink_go_proto",
"//proto:xchacha20_poly1305_go_proto",
"@com_github_golang_protobuf//proto:go_default_library",
"@org_golang_x_crypto//chacha20poly1305:go_default_library",
],
)
View
@@ -2,23 +2,35 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["aes_gcm.go"],
srcs = [
"aes_gcm.go",
"chacha20poly1305.go",
"xchacha20poly1305.go",
],
importpath = "github.com/google/tink/go/subtle/aead",
visibility = ["//visibility:public"],
deps = [
"//go/subtle/random:go_default_library",
"//go/tink:go_default_library",
"@org_golang_x_crypto//chacha20poly1305:go_default_library",
],
)
go_test(
name = "go_default_xtest",
srcs = ["aes_gcm_test.go"],
srcs = [
"aes_gcm_test.go",
"chacha20poly1305_test.go",
"chacha20poly1305_vectors_test.go",
"xchacha20poly1305_test.go",
"xchacha20poly1305_vectors_test.go",
],
data = [
"@wycheproof//testvectors:all", # keep
],
deps = [
":go_default_library",
"//go/subtle/random:go_default_library",
"@org_golang_x_crypto//chacha20poly1305:go_default_library",
],
)

0 comments on commit 0dda36f

Please sign in to comment.