Skip to content

Port: add --aarch64-fips202-backend to tests and CI#683

Merged
hanno-becker merged 1 commit into
mainfrom
issue-621
Nov 12, 2025
Merged

Port: add --aarch64-fips202-backend to tests and CI#683
hanno-becker merged 1 commit into
mainfrom
issue-621

Conversation

@willieyz
Copy link
Copy Markdown
Contributor

@willieyz willieyz commented Nov 12, 2025

@willieyz willieyz marked this pull request as ready for review November 12, 2025 06:22
@willieyz willieyz requested a review from a team as a code owner November 12, 2025 06:22
Copy link
Copy Markdown
Contributor

@mkannwischer mkannwischer left a comment

Choose a reason for hiding this comment

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

Thanks @willieyz. This looks mostly good. There is one CI warning - please resolve that before we merge. I'll think about if we should port the check_namespace script or not - the value it adds seems very limited.

Comment thread .github/workflows/ci.yml Outdated
Copy link
Copy Markdown
Contributor

@mkannwischer mkannwischer left a comment

Choose a reason for hiding this comment

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

Thanks for the update. LGTM.

- This commit is ported from mlkem-native PR #1106.

- This commit adds the `--aarch64-fips202-backend` option to the `tests`
  scripts, allowing the FIPS202 backend to be specified directly as
  an input parameter, also adds backend_tests to the CI workflow.

Signed-off-by: willieyz <willie.zhao@chelpis.com>
@hanno-becker hanno-becker merged commit e8dccc8 into main Nov 12, 2025
521 of 522 checks passed
@hanno-becker hanno-becker deleted the issue-621 branch November 12, 2025 13:01
hanno-becker added a commit that referenced this pull request May 13, 2026
Replace the single-layer C-reference forward and inverse NTT in
`mldsa/src/poly.c` with one that merges two layers each.

Also, store each twiddle alongside its precomputed twist, letting
`mld_fqmul(a, b, b_twisted)` drop the multiply with MLDSA_Q^{-1}
that was previously hidden inside `mld_montgomery_reduce`.

Mirrors pq-code-package/mlkem-native/#463 and pq-code/package/mlkem-native/#683

Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>
hanno-becker added a commit that referenced this pull request May 13, 2026
Replace the single-layer C-reference forward and inverse NTT in
`mldsa/src/poly.c` with one that merges two layers each.

Also, store each twiddle alongside its precomputed twist, letting
`mld_fqmul(a, b, b_twisted)` drop the multiply with MLDSA_Q^{-1}
that was previously hidden inside `mld_montgomery_reduce`.

Mirrors pq-code-package/mlkem-native/#463 and pq-code/package/mlkem-native/#683

Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>
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.

Port: Add --aarch64-fips202-backend to tests

3 participants