Skip to content

Hardening in GeneratePrivateDh186 and wc_DhImportKeyPair#9895

Merged
douzzer merged 2 commits intowolfSSL:masterfrom
embhorn:f283-287
Mar 7, 2026
Merged

Hardening in GeneratePrivateDh186 and wc_DhImportKeyPair#9895
douzzer merged 2 commits intowolfSSL:masterfrom
embhorn:f283-287

Conversation

@embhorn
Copy link
Member

@embhorn embhorn commented Mar 5, 2026

Description

Use force zero to harden operations in DH component.

Fixes:

  • f283
  • f287

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@embhorn embhorn self-assigned this Mar 5, 2026
Copilot AI review requested due to automatic review settings March 5, 2026 21:46
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

Hardens Diffie-Hellman key handling by force-zeroing sensitive big integers and buffers on failure paths.

Changes:

  • Replaced mp_clear() with mp_forcezero() in DH private key generation/import error paths.
  • Added ForceZero() for the temporary buffer used during DH private key generation.

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

@philljj philljj added the For This Release Release version 5.9.0 label Mar 6, 2026
@embhorn
Copy link
Member Author

embhorn commented Mar 6, 2026

Jenkins retest this please

@embhorn embhorn assigned wolfSSL-Bot and unassigned embhorn Mar 6, 2026
@embhorn
Copy link
Member Author

embhorn commented Mar 6, 2026

Retest this please

@douzzer douzzer added the Staged Staged for merge pending final test results and review label Mar 6, 2026
@douzzer douzzer merged commit f02f6d1 into wolfSSL:master Mar 7, 2026
453 of 454 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.

5 participants