Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Generate tpm policies use go-tpm2 package. #52

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

joylatten
Copy link

This commit replaces tpm-tools commands with golang go-tpm2 module to generate tpm ea policies.

cmd/trust/policygen.go Outdated Show resolved Hide resolved
pkg/trust/tpmpolicy.go Outdated Show resolved Hide resolved
This commit replaces tpm-tools commands with golang
go-tpm2 module to generate tpm ea policies.
Defaults are set for the outputs (policy digest files).
Inputs must be given (the pcr7 files). The policyversion
is anticipated to stay constant for a while so a default
is set for it.

Changelog: 07/26: Serge pushed for a whitespace fix

Signed-off-by: Joy Latten <[email protected]>
Signed-off-by: Serge Hallyn <[email protected]>
@hallyn hallyn merged commit 3765c8e into project-machine:main Jul 26, 2023
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants