blob: 4c9e5bc876d94ee238b499dd81e02c784bcc0272 [file] [log] [blame]
# Description:
# Auto-imported from github.com/veraison/go-cose
load("//tools/build_defs/license:license.bzl", "license")
package(
default_applicable_licenses = [":license"],
default_compatible_with = ["//buildenv/target:non_prod"],
default_visibility = ["//third_party/golang:__subpackages__"],
)
license(
name = "license",
package_name = "github_com/veraison/go_cose/v/v0",
)
licenses(["reciprocal"])
exports_files(["LICENSE"])
go_library(
name = "cose",
srcs = [
"algorithm.go",
"cbor.go",
"ecdsa.go",
"ed25519.go",
"errors.go",
"headers.go",
"rsa.go",
"sign.go",
"sign1.go",
"signer.go",
"verifier.go",
],
deps = [
"//go/tools/nogo/allowlist/crypto:elliptic",
"//third_party/golang/github_com/fxamacker/cbor/v/v2:cbor",
],
)
go_test(
name = "cose_test",
srcs = [
"algorithm_test.go",
"cbor_test.go",
"ecdsa_test.go",
"ed25519_test.go",
"headers_test.go",
"rsa_test.go",
"sign1_test.go",
"sign_test.go",
"signer_test.go",
"verifier_test.go",
],
library = ":cose",
deps = [
"//go/tools/nogo/allowlist/crypto:elliptic",
"//third_party/golang/github_com/fxamacker/cbor/v/v2:cbor",
],
)
go_test(
name = "cose_x_test",
srcs = [
"bench_test.go",
"conformance_test.go",
"example_test.go",
"fuzz_test.go",
],
data = glob(["testdata/*"]),
deps = [
":cose",
"//base/go:runfiles",
"//go/tools/nogo/allowlist/crypto:elliptic",
"//third_party/golang/github_com/fxamacker/cbor/v/v2:cbor",
],
)