Skip to content

hpke: add missing ForceZero for eae_prk, key_schedule_context, secret.#9894

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

hpke: add missing ForceZero for eae_prk, key_schedule_context, secret.#9894
philljj wants to merge 1 commit intowolfSSL:masterfrom
philljj:fix_f_280

Conversation

@philljj
Copy link
Contributor

@philljj philljj commented Mar 5, 2026

Description

hpke: add missing ForceZero for eae_prk, key_schedule_context, secret.

Fixes F-280.

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

Adds explicit zeroization of HPKE intermediate secrets before freeing to reduce sensitive data lifetime in memory (Fixes F-280).

Changes:

  • Zeroize eae_prk after use in wc_HpkeExtractAndExpand.
  • Zeroize key_schedule_context and secret before freeing in wc_HpkeKeyScheduleBase.
  • Minor control-flow formatting change (adds braces) around the ret == 0 block.

💡 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
@philljj
Copy link
Contributor Author

philljj commented Mar 6, 2026

Retest this please.

1 similar comment
@philljj
Copy link
Contributor Author

philljj commented Mar 7, 2026

Retest this please.

@philljj philljj assigned wolfSSL-Bot and unassigned philljj Mar 7, 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