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

FAPI: Fix unnecessary writes to keystore. #2883

Conversation

JuergenReppSIT
Copy link
Member

  • A duplicate write operation to the keystore was executed by Fapi_NvWrite.
  • A write operation to the keystore was only needed after the first call of Fapi_NvWrite because the NV_WRITTEN bit was set.
  • A write operation to the keystore by Fapi_ChangeAuth was only needed if the value of the attribute with_auth was changed.

Addresses: #2881

* A duplicate write operation to the keystore was executed by
  Fapi_NvWrite.
* A write operation to the keystore was only needed after the
  first call of Fapi_NvWrite because the NV_WRITTEN bit was set.
* A write operation to the keystore by Fapi_ChangeAuth was only needed
  if the value of the attribute with_auth was changed.

Addresses: tpm2-software#2881

Signed-off-by: Juergen Repp <[email protected]>
@AndreasFuchsTPM AndreasFuchsTPM merged commit 6c6812b into tpm2-software:master Aug 13, 2024
25 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