Skip to content

ML-KEM: fix AVX2 assembly#10430

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
SparkiDev:mlkem_avx2_fixes
May 12, 2026
Merged

ML-KEM: fix AVX2 assembly#10430
dgarske merged 1 commit into
wolfSSL:masterfrom
SparkiDev:mlkem_avx2_fixes

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

AVX2 not decompressing 5-bit values correctly.
AVX2 not comparing last 32 bytes of ciphertext.
Protect mlkemkey_get_k to only be compiled when make key is compiled in.

Fixes zd#21471

Testing

Fuzz test.

@SparkiDev SparkiDev self-assigned this May 8, 2026
@SparkiDev
Copy link
Copy Markdown
Contributor Author

SparkiDev commented May 8, 2026

Code generated with scripts in PR:
https://github.com/wolfSSL/scripts/pull/576

@SparkiDev
Copy link
Copy Markdown
Contributor Author

Jenkins: retest this please

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

MemBrowse Memory Report

No memory changes detected for:

@SparkiDev SparkiDev force-pushed the mlkem_avx2_fixes branch from 7fb1ced to ad45b5e Compare May 8, 2026 03:40
@SparkiDev
Copy link
Copy Markdown
Contributor Author

Jenkins: retest this please

AVX2 not decompressing 5-bit values correctly.
AVX2 not comparing last 32 bytes of ciphertext.
Protect mlkemkey_get_k to only be compiled when make key is compiled in.
@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev May 12, 2026
@SparkiDev SparkiDev requested a review from wolfSSL-Bot May 12, 2026 04:40
@dgarske dgarske merged commit 2239fc3 into wolfSSL:master May 12, 2026
444 checks passed
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