Skip to content

ascon: don't skip wc_AsconAEAD128_Clear on auth error.#9928

Merged
douzzer merged 1 commit intowolfSSL:masterfrom
philljj:fix_f_451
Mar 11, 2026
Merged

ascon: don't skip wc_AsconAEAD128_Clear on auth error.#9928
douzzer merged 1 commit intowolfSSL:masterfrom
philljj:fix_f_451

Conversation

@philljj
Copy link
Contributor

@philljj philljj commented Mar 9, 2026

Description

Don't skip wc_AsconAEAD128_Clear on auth error.

Fixes F-451.

@philljj philljj self-assigned this Mar 9, 2026
Copilot AI review requested due to automatic review settings March 9, 2026 14:35
@philljj philljj added the For This Release Release version 5.9.0 label Mar 9, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where wc_AsconAEAD128_DecryptFinal would return early on an authentication error without first calling wc_AsconAEAD128_Clear, potentially leaving sensitive state (key material, intermediate cipher state) in memory.

Changes:

  • Changed the auth tag mismatch handling to store the error code instead of returning immediately, ensuring wc_AsconAEAD128_Clear is always called before returning.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@philljj
Copy link
Contributor Author

philljj commented Mar 9, 2026

Retest this please.

@philljj philljj assigned wolfSSL-Bot and unassigned philljj Mar 9, 2026
@douzzer douzzer added the Staged Staged for merge pending final test results and review label Mar 10, 2026
@douzzer douzzer merged commit f18d5ba into wolfSSL:master Mar 11, 2026
456 of 459 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For This Release Release version 5.9.0 Staged Staged for merge pending final test results and review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants