load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = [
        "aeadrekey.go",
        "aes128gcm.go",
        "aes128gcmrekey.go",
        "common.go",
        "counter.go",
        "record.go",
    ],
    importpath = "google.golang.org/grpc/credentials/alts/core/conn",
    visibility = ["//visibility:public"],
    deps = ["//credentials/alts/core:go_default_library"],
)

go_test(
    name = "go_default_test",
    srcs = [
        "aeadrekey_test.go",
        "aes128gcm_test.go",
        "aes128gcmrekey_test.go",
        "counter_test.go",
        "record_test.go",
    ],
    embed = [":go_default_library"],
    deps = ["//credentials/alts/core:go_default_library"],
)
