Skip to content

Set committed=1 on cached keys read back from NVM#401

Open
padelsbach wants to merge 1 commit into
wolfSSL:mainfrom
padelsbach:set-committed-on-nvm-read
Open

Set committed=1 on cached keys read back from NVM#401
padelsbach wants to merge 1 commit into
wolfSSL:mainfrom
padelsbach:set-committed-on-nvm-read

Conversation

@padelsbach
Copy link
Copy Markdown
Contributor

When reading keys from NVM into the cache, they are marked as committed=0 and thus cannot be evicted, and could eventually cause key readback to fail.

This change sets committed=1 if the key is read from NVM. New test catches the bug.

@padelsbach padelsbach marked this pull request as ready for review June 3, 2026 20:17
Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #401

Scan targets checked: wolfhsm-core-bugs, wolfhsm-src

No new issues found in the changed files. ✅

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