Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented and Tested Clear. #294

Closed
wants to merge 1 commit into from
Closed

Conversation

matt-tsai
Copy link
Contributor

Implemented and tested Clear. Fixed some code spacing. Clear will be helping in testing other functions so more comprehensive tests will come with the migration of more features.

Fixed some code spacing.
@matt-tsai matt-tsai requested a review from a team as a code owner July 19, 2022 17:55

if _, err := clear.Execute(thetpm); err != nil {
t.Fatalf("Clear failed: %v", err)
}
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to have some observable affect here? I know TPM2_Clear does multiple things, would it be possible to observe one of them?

Copy link
Member

Choose a reason for hiding this comment

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

You could generate a primary key in the storage hierarchy with the same template before and after the clear, and assert the public part changed.

Copy link
Member

Choose a reason for hiding this comment

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

Good idea, I like that

@matt-tsai matt-tsai changed the title Implemented and Tested TPM2_Clear. Implemented and Tested Clear. Jul 27, 2022
@chrisfenner
Copy link
Member

Added this with the requested test in #305

@chrisfenner chrisfenner closed this Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants