2023-10-07 10:24:29 -04:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
2023-11-07 09:19:31 -05:00
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
2023-10-07 10:24:29 -04:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "verify",
|
2023-11-07 06:17:08 -05:00
|
|
|
srcs = ["verify.go"],
|
2023-10-07 10:24:29 -04:00
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/internal/verify",
|
|
|
|
visibility = ["//:__subpackages__"],
|
2023-11-07 09:19:31 -05:00
|
|
|
deps = [
|
|
|
|
"//internal/attestation/snp",
|
2023-11-07 06:17:08 -05:00
|
|
|
"//internal/config",
|
2023-11-07 09:19:31 -05:00
|
|
|
"@com_github_golang_jwt_jwt_v5//:jwt",
|
|
|
|
"@com_github_google_go_sev_guest//abi",
|
|
|
|
"@com_github_google_go_sev_guest//kds",
|
2023-11-07 06:17:08 -05:00
|
|
|
"@com_github_google_go_sev_guest//verify/trust",
|
2023-11-07 09:19:31 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "verify_test",
|
|
|
|
srcs = ["verify_test.go"],
|
|
|
|
embed = [":verify"],
|
|
|
|
deps = [
|
|
|
|
"//internal/attestation/snp/testdata",
|
|
|
|
"//internal/logger",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
],
|
2023-10-07 10:24:29 -04:00
|
|
|
)
|