1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3package(default_visibility = ["//:__subpackages__"]) # keep 4 5go_library( 6 name = "subtle", 7 srcs = [ 8 "aes_ctr.go", 9 "aes_gcm.go", 10 "aes_gcm_siv.go", 11 "chacha20poly1305.go", 12 "encrypt_then_authenticate.go", 13 "ind_cpa.go", 14 "polyval.go", 15 "subtle.go", 16 "xchacha20poly1305.go", 17 ], 18 importpath = "github.com/google/tink/go/aead/subtle", 19 deps = [ 20 "//internal/aead", 21 "//subtle/random", 22 "//tink", 23 "@org_golang_x_crypto//chacha20poly1305", 24 ], 25) 26 27go_test( 28 name = "subtle_test", 29 srcs = [ 30 "aes_ctr_test.go", 31 "aes_gcm_siv_test.go", 32 "aes_gcm_test.go", 33 "chacha20poly1305_test.go", 34 "chacha20poly1305_vectors_test.go", 35 "encrypt_then_authenticate_test.go", 36 "polyval_test.go", 37 "subtle_test.go", 38 "xchacha20poly1305_test.go", 39 "xchacha20poly1305_vectors_test.go", 40 ], 41 data = ["@wycheproof//testvectors:all"], 42 deps = [ 43 ":subtle", 44 "//mac/subtle", 45 "//subtle/random", 46 "//testutil", 47 "//tink", 48 "@org_golang_x_crypto//chacha20poly1305", 49 ], 50) 51 52alias( 53 name = "go_default_library", 54 actual = ":subtle", 55 visibility = ["//:__subpackages__"], 56) 57