Skip to content

ML-DSA/Dilithium: reduce vector when small build#9760

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:mldsa_small_matrix_mul_reduce
Feb 18, 2026
Merged

ML-DSA/Dilithium: reduce vector when small build#9760
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:mldsa_small_matrix_mul_reduce

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

Ensure the matrix multiplication result has values reduced to the correct range. Only an issue for small builds.

Fixes zd#21168

Testing

Standard

@SparkiDev SparkiDev self-assigned this Feb 10, 2026
@SparkiDev SparkiDev force-pushed the mldsa_small_matrix_mul_reduce branch 2 times, most recently from 3937a4f to 614aa74 Compare February 10, 2026 23:13
Ensure the matrix multiplication result has values reduced to the
correct range. Only an issue for small builds.
@SparkiDev SparkiDev force-pushed the mldsa_small_matrix_mul_reduce branch from 614aa74 to 895fb29 Compare February 10, 2026 23:48
Copy link
Copy Markdown

@programsurf programsurf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The fix correctly adds dilithium_vec_red() after matrix_mul at all affected sites, properly guarded by WOLFSSL_DILITHIUM_SMALL. This matches the pq-crystals reference pattern. Clean and minimal fix — nicely done.

@SparkiDev SparkiDev assigned wolfSSL-Bot and dgarske and unassigned SparkiDev Feb 18, 2026
@dgarske dgarske merged commit c5bbe79 into wolfSSL:master Feb 18, 2026
420 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.

4 participants