2022-07-07 20:11:50 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "chacha20",
|
|
|
|
srcs = [
|
|
|
|
"chacha_arm64.go",
|
|
|
|
"chacha_arm64.s",
|
|
|
|
"chacha_generic.go",
|
|
|
|
"chacha_noasm.go",
|
|
|
|
"chacha_ppc64le.go",
|
|
|
|
"chacha_ppc64le.s",
|
|
|
|
"chacha_s390x.go",
|
|
|
|
"chacha_s390x.s",
|
|
|
|
"xor.go",
|
|
|
|
],
|
|
|
|
importmap = "peridot.resf.org/vendor/golang.org/x/crypto/chacha20",
|
|
|
|
importpath = "golang.org/x/crypto/chacha20",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2024-02-24 00:34:55 +00:00
|
|
|
"//vendor/golang.org/x/crypto/internal/alias",
|
2022-07-07 20:11:50 +00:00
|
|
|
] + select({
|
|
|
|
"@io_bazel_rules_go//go/platform:s390x": [
|
|
|
|
"//vendor/golang.org/x/sys/cpu",
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
|
|
|
)
|