1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "jwe",
srcs = [
"compress.go",
"decrypt.go",
"headers.go",
"headers_gen.go",
"interface.go",
"io.go",
"jwe.go",
"key_provider.go",
"message.go",
"options.go",
"options_gen.go",
],
importpath = "github.com/lestrrat-go/jwx/v2/jwe",
visibility = ["//visibility:public"],
deps = [
"//cert",
"//internal/base64",
"//internal/iter",
"//internal/json",
"//internal/keyconv",
"//internal/pool",
"//jwa",
"//jwe/internal/aescbc",
"//jwe/internal/cipher",
"//jwe/internal/content_crypt",
"//jwe/internal/keyenc",
"//jwe/internal/keygen",
"//jwk",
"//x25519",
"@com_github_lestrrat_go_blackmagic//:go_default_library",
"@com_github_lestrrat_go_iter//mapiter:go_default_library",
"@com_github_lestrrat_go_option//:option",
"@org_golang_x_crypto//pbkdf2",
],
)
go_test(
name = "jwe_test",
srcs = [
"gh402_test.go",
"headers_test.go",
"jwe_test.go",
"message_test.go",
"options_gen_test.go",
"speed_test.go",
],
embed = [":jwe"],
deps = [
"//cert",
"//internal/json",
"//internal/jwxtest",
"//jwa",
"//jwk",
"//x25519",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)
alias(
name = "go_default_library",
actual = ":jwe",
visibility = ["//visibility:public"],
)
|