Skip to content

feat(esapi): add missing TPM commands in authenticated_countdown_timer#652

Open
hyperfinitism wants to merge 1 commit into
parallaxsecond:mainfrom
hyperfinitism:feature/authcdtim-command
Open

feat(esapi): add missing TPM commands in authenticated_countdown_timer#652
hyperfinitism wants to merge 1 commit into
parallaxsecond:mainfrom
hyperfinitism:feature/authcdtim-command

Conversation

@hyperfinitism

@hyperfinitism hyperfinitism commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

This pull request implements the following wrapper function with integration test:

  • act_set_timeout (ESAPI spec 11.3.116)

This was extracted from #625.

Limitation

swtpm does not support TPM2_ACT_SetTimeout; this command returns TPM_RC_COMMAND_CODE. The integration test is marked #[ignore], and the doc examples is marked no_run.

Added the following wrapper function with integration test:

- act_set_timeout (ESAPI spec 11.3.116)

swtpm (libtpms) does not support TPM2_ACT_SetTimeout; this command returns
TPM_RC_COMMAND_CODE. The integration test is marked #[ignore], and the doc
examples is marked no_run.

Signed-off-by: Takuma IMAMURA <209989118+hyperfinitism@users.noreply.github.com>
/// .expect("Call to act_set_timeout failed");
/// });
/// ```
pub fn act_set_timeout(&mut self, act_handle: ObjectHandle, start_timeout: u32) -> Result<()> {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I am not so sure about this handle. I was working on something that had similar problems but for attached components. That creates a specific handle type that only allows for a handle in a specific range. I think something similar would be appropriate here as well or depending on the situation maybe it would be better to do something similar to what have been done for PCR handles.

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