Skip to content

plumb caller heap into Cmac before cryptocb fires#10401

Open
night1rider wants to merge 1 commit intowolfSSL:masterfrom
night1rider:Early-heap-delcare-cmac
Open

plumb caller heap into Cmac before cryptocb fires#10401
night1rider wants to merge 1 commit intowolfSSL:masterfrom
night1rider:Early-heap-delcare-cmac

Conversation

@night1rider
Copy link
Copy Markdown
Contributor

_InitCmac_ common XMEMSETs the Cmac struct then immediately invokes the cryptocb, so the heap arg passed to wc_InitCmac_* was lost before any hardware callback could read it. Stash heap in cmac->aes.heap (or a new NO_AES only cmac->heap fallback) right after the memset.

@night1rider night1rider self-assigned this May 5, 2026
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 #10401

Scan targets checked: wolfcrypt-bugs, wolfcrypt-src

No new issues found in the changed files. ✅

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

MemBrowse Memory Report

No memory changes detected for:

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