Skip to content

[stm32, aes, cryp, pka] Zeroize AES registers after performing operation and on cleanup#48

Merged
aidangarske merged 1 commit into
wolfSSL:mainfrom
AlexLanzano:fenrir-fixes
Jun 22, 2026
Merged

[stm32, aes, cryp, pka] Zeroize AES registers after performing operation and on cleanup#48
aidangarske merged 1 commit into
wolfSSL:mainfrom
AlexLanzano:fenrir-fixes

Conversation

@AlexLanzano

Copy link
Copy Markdown
Member

No description provided.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #48

Scan targets checked: wolfhal-bugs, wolfhal-src

No new issues found in the changed files. ✅

@aidangarske aidangarske left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Skoll Multi-Scan Review

Modes: review + review-securityOverall recommendation: COMMENT
Findings: 4 total — 1 posted, 3 skipped
1 finding(s) posted as inline comments (see file-level comments below)

Posted findings

  • [Medium] [review+review-security] N6 driver skips ZeroKeyIv on key-setup/init/header error paths (inconsistent with WB driver and the PR's stated goal)src/crypto/stm32n6_cryp.c:405-408,417-419,508-511,522-524,623-625,798-806,1079-1087,1217-1226,1256-1258

Skipped findings

  • [Low] Stack buffers holding key-derived/tag material are not zeroed before return
  • [Low] No test exercises the new register-zeroization behavior
  • [Info] ECB/CBC/CTR streaming (Start/Process) sessions retain key in registers until Deinit

Review generated by Skoll

Comment thread src/crypto/stm32n6_cryp.c
Comment thread src/crypto/stm32wb_aes.c
@aidangarske aidangarske merged commit 4744f20 into wolfSSL:main Jun 22, 2026
34 checks passed

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #48

Scan targets checked: wolfhal-bugs, wolfhal-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.

3 participants