Skip to content

ML-KEM: fix comments, API signatures, minor issues#10405

Open
SparkiDev wants to merge 1 commit intowolfSSL:masterfrom
SparkiDev:mlkem_fixes_1
Open

ML-KEM: fix comments, API signatures, minor issues#10405
SparkiDev wants to merge 1 commit intowolfSSL:masterfrom
SparkiDev:mlkem_fixes_1

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

More checks for public or private key not set.
wc_MlKemKey_Free clears key->flags
wc_MlKemKey_DecodePrivateKey now checks the public key is valid. wc_MlKemKey_EncodePrivateKey doesn't need calculate hash of public key as encoding the public key will do this.
EncodePrivateKey/EncodePublicKey now return BAD_STATE_E when flags not set.
mlkem_kdf, mlkem_check_public, mlkem_xof_absorb pointer parameters are now const.
Now all mlkem_redistribute_*_rand_avx2 functions are WOLFSSL_LOCAL. Changed Kyber uses to MlKem.

Testing

Tested ML-KEM still works.

@SparkiDev SparkiDev self-assigned this May 6, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

MemBrowse Memory Report

No memory changes detected for:

More checks for public or private key not set.
wc_MlKemKey_Free clears key->flags
wc_MlKemKey_DecodePrivateKey now checks the public key is valid.
wc_MlKemKey_EncodePrivateKey doesn't need calculate hash of public key
as encoding the public key will do this.
EncodePrivateKey/EncodePublicKey now return BAD_STATE_E when flags not
set.
mlkem_kdf, mlkem_check_public, mlkem_xof_absorb pointer parameters are
now const.
Now all mlkem_redistribute_*_rand_avx2 functions are WOLFSSL_LOCAL.
Changed Kyber uses to MlKem.
@SparkiDev
Copy link
Copy Markdown
Contributor Author

Re-based for the Python test fixes.

@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev May 7, 2026
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.

3 participants