Skip to content

Conversation

@mkannwischer
Copy link
Contributor

@mkannwischer mkannwischer commented Nov 16, 2025

The common.h in mldsa-native diverged slightly from the mlkem-native one even though by now they are implementing the same features. The primary difference was ordering.
Two minor things have been resolved:

  1. There was a bad configuration warning missing when MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202 is set, but
    MLD_CONFIG_FIPS202_BACKEND_FILE is not set.
  2. We did not correctly handle when MLD_CONFIG_NO_ASM is set, and MLD_CONFIG_USE_NATIVE_BACKEND_ARITH or
    MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202 are also set (MLD_CONFIG_NO_ASM should take precedence).

@mkannwischer mkannwischer marked this pull request as ready for review November 16, 2025 11:49
@mkannwischer mkannwischer requested a review from a team as a code owner November 16, 2025 11:49
The common.h in mldsa-native diverged slightly from the mlkem-native one even
though by now they are implementing the same features. The primary difference
was ordering.
Two minor things have been resolved:
1) There was a bad configuration warning missing when
MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202 is set, but
MLD_CONFIG_FIPS202_BACKEND_FILE is not set.
2) We did not correctly handle when MLD_CONFIG_NO_ASM is set, and
MLD_CONFIG_USE_NATIVE_BACKEND_ARITH or
MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202 are also set (MLD_CONFIG_NO_ASM should
take precedence).

Resolves #684

Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
@mkannwischer mkannwischer merged commit b6269a2 into main Nov 17, 2025
269 checks passed
@mkannwischer mkannwischer deleted the common branch November 17, 2025 05:40
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.

Consolidate common.h with mlkem-native

3 participants