Skip to content

Add TPM2_GetTime Implementation#409

Merged
chrisfenner merged 1 commit intogoogle:mainfrom
qwwqwwq:feat/get_time
Jul 29, 2025
Merged

Add TPM2_GetTime Implementation#409
chrisfenner merged 1 commit intogoogle:mainfrom
qwwqwwq:feat/get_time

Conversation

@qwwqwwq
Copy link
Copy Markdown
Contributor

@qwwqwwq qwwqwwq commented Jul 29, 2025

See section 18.7 of the spec

This is a useful command as it allows you to "tick stamp" arbitrary data, associating it with both with a signing key and a particular TPM clock state. Separately calling the TPM2_ReadClock/TPM2_Sign commands can not accomplish this.

The command code for TPM2_GetTime is enumerated in constants.go but the actual command implementation does not exist, so this PR adds it.

@qwwqwwq qwwqwwq requested review from a team, alexmwu and jkl73 as code owners July 29, 2025 21:56
Copy link
Copy Markdown
Member

@chrisfenner chrisfenner left a comment

Choose a reason for hiding this comment

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

Thanks for adding this!

@chrisfenner chrisfenner merged commit bf12020 into google:main Jul 29, 2025
4 checks passed
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.

2 participants