Skip to content

ML-KEM to bytes C: not reducing all values#9421

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:mlkem_to_bytes_fix
Nov 13, 2025
Merged

ML-KEM to bytes C: not reducing all values#9421
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:mlkem_to_bytes_fix

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

Call to mlkem_csubq_c was only called on first array. Fixed to do it for all.

Fixes zd#20796

Testing

Tested that the all values are less than MLKEM_Q before encoding in mlkem_bytes_to_c.

Checklist

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

Call to mlkem_csubq_c was only called on first array.
Fixed to do it for all.
@SparkiDev SparkiDev self-assigned this Nov 13, 2025
@SparkiDev SparkiDev added the For This Release Release version 5.9.1 label Nov 13, 2025
@SparkiDev
Copy link
Copy Markdown
Contributor Author

retest this please

@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev Nov 13, 2025
@dgarske dgarske merged commit 4f3586f into wolfSSL:master Nov 13, 2025
360 of 363 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.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants