Skip to content

Conversation

@mkannwischer
Copy link
Contributor

This pull request makes the requires changes to the ML-DSA sources to enable the monobuild which will be added in #574.

@mkannwischer mkannwischer marked this pull request as ready for review November 1, 2025 12:54
@mkannwischer mkannwischer requested a review from a team as a code owner November 1, 2025 12:54
@mkannwischer mkannwischer force-pushed the monobuild-changes branch 3 times, most recently from fc45938 to 777de4b Compare November 3, 2025 08:00
Copy link
Contributor

@hanno-becker hanno-becker left a comment

Choose a reason for hiding this comment

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

Looks very good, thanks a lot @mkannwischer esp. for the clean and review-able structure of this PR.

Two smaller points:

  • poly_chknorm is generic and should live in poly.[ch], unless I'm overlooking something?
  • Some typos in the commit message of 89428ff that you could fix while at it.

#532 introduced
poly_kl.c for polynomial functions that depend on the parameter set.
However, no separate header was introduced.
A separate header is required for the monobuild to be able to undefine
parameter-specific symbols.
This commit adds the poly_kl.h header.

Signed-off-by: Matthias J. Kannwischer <[email protected]>
Signed-off-by: Matthias J. Kannwischer <[email protected]>
To avoid symbol clashes during SCU-builds, common.h should not be defining
any symbols that are not undefined at the end of the SCU files.
The only symbol violating this is mld_zeroize.
We instead move that function to ct.h

Signed-off-by: Matthias J. Kannwischer <[email protected]>
Signed-off-by: Matthias J. Kannwischer <[email protected]>
Symbols in poly_kl need to include the parameter set in the namespace to
enable SCU builds.

Signed-off-by: Matthias J. Kannwischer <[email protected]>
@mkannwischer mkannwischer merged commit db475c1 into main Nov 3, 2025
247 checks passed
@mkannwischer mkannwischer deleted the monobuild-changes branch November 3, 2025 11:22
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