blob: 750319cbf89c3e39d33e7ed246aa0616500f985e [file] [log] [blame]
package(default_visibility = ["//:__subpackages__"]) # keep
licenses(["notice"]) # keep
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"hmac_key_manager.go",
"mac.go",
"mac_factory.go",
"mac_key_templates.go",
],
importpath = "github.com/google/tink/go/mac",
visibility = ["//visibility:public"],
deps = [
"//core/cryptofmt:go_default_library",
"//core/primitiveset:go_default_library",
"//core/registry:go_default_library",
"//keyset:go_default_library",
"//mac/subtle:go_default_library",
"//proto:common_go_proto",
"//proto:hmac_go_proto",
"//proto:tink_go_proto",
"//subtle/random:go_default_library",
"//tink:go_default_library",
"@com_github_golang_protobuf//proto:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = [
"hmac_key_manager_test.go",
"mac_factory_test.go",
"mac_key_templates_test.go",
"mac_test.go",
],
embed = [":go_default_library"],
deps = [
"//core/cryptofmt:go_default_library",
"//core/registry:go_default_library",
"//mac/subtle:go_default_library",
"//proto:common_go_proto",
"//proto:hmac_go_proto",
"//proto:tink_go_proto",
"//subtle:go_default_library",
"//subtle/random:go_default_library",
"//testkeyset:go_default_library",
"//testutil:go_default_library",
"//tink:go_default_library",
"@com_github_golang_protobuf//proto:go_default_library",
],
)