image: reimplement and adapt measurement generation in Go

This commit is contained in:
Malte Poll 2023-09-21 14:50:18 +02:00 committed by Malte Poll
parent 8e706d6de3
commit f6d9f91877
31 changed files with 1343 additions and 286 deletions

View file

@ -0,0 +1,22 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "extract",
srcs = ["extract.go"],
importpath = "github.com/edgelesssys/constellation/v2/image/measured-boot/extract",
visibility = ["//visibility:public"],
deps = ["//image/measured-boot/pesection"],
)
go_test(
name = "extract_test",
srcs = ["extract_test.go"],
embed = [":extract"],
deps = [
"//image/measured-boot/fixtures",
"//image/measured-boot/pesection",
"@com_github_stretchr_testify//assert",
"@org_uber_go_goleak//:goleak",
],
)