google / google/go-tpm

Retry command on TPM_RC_RETRY

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
673
Forks
188
PR merge metrics
No merged PRs in 30d

Description

Certain TPM2 commands are allowed to return TPM_RC_RETRY when the client should attempt the command again. This has caused some problems in higher level applications (see https://github.com/google/go-tpm-tools/pull/1) and in other TPM libraries (see https://github.com/tpm2-software/tpm2-tools/issues/469).

It would be nice if runCommand simply checked for TPM_RC_RETRY and reissued the command automatically, this would also help avoid having to add code higher up the stack like [this C library had to do](https://github.com/tpm2-software/tpm2-tools/pull/585/files#diff-5c58d23d240af6c75eebbdea9fef670b).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.