Skip to content

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

Open
philljj wants to merge 1 commit intowolfSSL:masterfrom
philljj:fix_f_451
Open

ascon: don't skip wc_AsconAEAD128_Clear on auth error.#9928
philljj wants to merge 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
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants