load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "crypto", srcs = [ "activations.go", "bcrypt.go", "crypto.go", "edgebootstraptokens.go", "pbkdf2.go", "secret.go", "sha512.go", "wireguard.go", ], importpath = "edge-infra.dev/pkg/lib/crypto", visibility = ["//visibility:public"], deps = [ "//pkg/lib/crypto/encodings", "//pkg/lib/crypto/osutilcrypt/sha512", "//pkg/lib/crypto/randomizer", "//pkg/lib/crypto/validation", "@com_github_xdg_go_pbkdf2//:pbkdf2", "@org_golang_x_crypto//bcrypt", "@org_golang_x_crypto//curve25519", ], ) go_test( name = "crypto_test", srcs = ["crypto_test.go"], embed = [":crypto"], deps = [ "//pkg/lib/crypto/validation", "@com_github_stretchr_testify//assert", "@org_golang_x_crypto//bcrypt", ], )