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

Separatefunctions #53

Merged
merged 4 commits into from
Aug 1, 2023
Merged

Conversation

joylatten
Copy link

No description provided.

Joy Latten added 4 commits July 28, 2023 16:54
Move computePCR7 to pkg so that it can be called by other
go modules to acquire pcr7 values.

Signed-off-by: Joy Latten <[email protected]>
Generate the TPM policies separately. It will then be
easier to generate a single policy for revocation.

Signed-off-by: Joy Latten <[email protected]>
- This commit moved the addPcr7data() into utils.go which seem more
appropriate. It can then be used in the future by another caller
to seamlessly add signdata when generating a new keyset.
- This commit also fixed createPCRIndex from altering the byte slice
passed in.
- Fixed spacing in KeysetExist() and savePubkeytoFile() in cmd/trust/utils.go
- Added defaults to pcr7data flags for the policy files. Used same names as used
in tpm-policy-gen subcommand. Thus the defaults from tpm-policy-gen can just be
picked up with pcr7data subcommand (defaults).

Signed-off-by: Joy Latten <[email protected]>
@hallyn hallyn self-requested a review August 1, 2023 17:43
Copy link
Contributor

@hallyn hallyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@hallyn hallyn merged commit a86cd94 into project-machine:main Aug 1, 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