Skip to content

Store the size of the allocated private key buffer for ML-KEM#10206

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
Frauschi:mlkem-dynamic-key-2
Apr 14, 2026
Merged

Store the size of the allocated private key buffer for ML-KEM#10206
dgarske merged 1 commit intowolfSSL:masterfrom
Frauschi:mlkem-dynamic-key-2

Conversation

@Frauschi
Copy link
Copy Markdown
Contributor

Follow-up for #10179: when WOLFSSL_MLKEM_DYNAMIC_KEYS is enabled, store the size of the allocated private key buffer for later ForceZero() calls. This prevents potential erroneous corruption via a wrong k parameter.

dgarske
dgarske previously approved these changes Apr 13, 2026
Comment thread wolfssl/wolfcrypt/wc_mlkem.h Outdated
@Frauschi Frauschi force-pushed the mlkem-dynamic-key-2 branch from abf0a71 to 17ba0c2 Compare April 14, 2026 11:33
@Frauschi Frauschi removed their assignment Apr 14, 2026
@Frauschi Frauschi requested review from SparkiDev and dgarske April 14, 2026 11:33
@dgarske dgarske merged commit c01eca5 into wolfSSL:master Apr 14, 2026
422 of 429 checks passed
@Frauschi Frauschi deleted the mlkem-dynamic-key-2 branch April 14, 2026 16:20
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.

4 participants