2023-09-21 08:50:18 -04:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "measure",
|
|
|
|
srcs = [
|
|
|
|
"authentihash.go",
|
|
|
|
"pcr.go",
|
|
|
|
"pcr04.go",
|
|
|
|
"pcr09.go",
|
|
|
|
"pcr11.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/image/measured-boot/measure",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//image/measured-boot/pesection",
|
2024-02-05 06:06:48 -05:00
|
|
|
"@com_github_foxboron_go_uefi//authenticode",
|
2023-09-21 08:50:18 -04:00
|
|
|
"@org_golang_x_text//encoding/unicode",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "measure_test",
|
|
|
|
srcs = [
|
|
|
|
"authentihash_test.go",
|
|
|
|
"measure_test.go",
|
|
|
|
"pcr04_test.go",
|
|
|
|
"pcr09_test.go",
|
|
|
|
"pcr11_test.go",
|
|
|
|
"pcr_test.go",
|
|
|
|
],
|
|
|
|
embed = [":measure"],
|
|
|
|
deps = [
|
|
|
|
"//image/measured-boot/fixtures",
|
|
|
|
"//image/measured-boot/pesection",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
"@org_uber_go_goleak//:goleak",
|
|
|
|
],
|
|
|
|
)
|