1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3package(default_visibility = ["//:__subpackages__"]) # keep 4 5licenses(["notice"]) # keep 6 7go_library( 8 name = "mac", 9 srcs = [ 10 "aes_cmac_key_manager.go", 11 "hmac_key_manager.go", 12 "mac.go", 13 "mac_factory.go", 14 "mac_key_templates.go", 15 ], 16 importpath = "github.com/google/tink/go/mac", 17 visibility = ["//visibility:public"], 18 deps = [ 19 "//core/cryptofmt", 20 "//core/primitiveset", 21 "//core/registry", 22 "//internal/internalregistry", 23 "//internal/monitoringutil", 24 "//internal/tinkerror", 25 "//keyset", 26 "//mac/subtle", 27 "//monitoring", 28 "//proto/aes_cmac_go_proto", 29 "//proto/common_go_proto", 30 "//proto/hmac_go_proto", 31 "//proto/tink_go_proto", 32 "//subtle/random", 33 "//tink", 34 "@org_golang_google_protobuf//proto", 35 ], 36) 37 38go_test( 39 name = "mac_test", 40 srcs = [ 41 "aes_cmac_key_manager_test.go", 42 "hmac_key_manager_test.go", 43 "mac_factory_test.go", 44 "mac_init_test.go", 45 "mac_key_templates_test.go", 46 "mac_test.go", 47 ], 48 deps = [ 49 ":mac", 50 "//core/cryptofmt", 51 "//core/registry", 52 "//insecurecleartextkeyset", 53 "//internal/internalregistry", 54 "//internal/testing/stubkeymanager", 55 "//keyset", 56 "//mac/internal/mactest", 57 "//mac/subtle", 58 "//monitoring", 59 "//proto/aes_cmac_go_proto", 60 "//proto/common_go_proto", 61 "//proto/hmac_go_proto", 62 "//proto/tink_go_proto", 63 "//signature", 64 "//subtle", 65 "//subtle/random", 66 "//testing/fakemonitoring", 67 "//testkeyset", 68 "//testutil", 69 "//tink", 70 "@com_github_google_go_cmp//cmp", 71 "@com_github_google_go_cmp//cmp/cmpopts", 72 "@org_golang_google_protobuf//proto", 73 ], 74) 75 76alias( 77 name = "go_default_library", 78 actual = ":mac", 79 visibility = ["//visibility:public"], 80) 81