Skip to content

Conversation

bremoran
Copy link
Contributor

@bremoran bremoran commented Oct 1, 2025

Also add tests for Keccak implementations on Armv8.1-m

@bremoran bremoran requested a review from a team as a code owner October 1, 2025 11:02
@bremoran bremoran marked this pull request as draft October 1, 2025 13:31
Copy link
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 @bremoran! We'll need to discuss this with the others. Here are some initial comments.

I don't see this test being exercised in the MVE CI so far. That definitely should be changed.

We should align the test names with mlkem-native.

My biggest concern right now is uniform licensing. At least everything in mldsa/ needs to be Apache-2.0 OR ISC OR MIT. For test/ we may be slightly more flexible, but just having Apache-2.0 OR ISC OR MIT for everything makes it less confusing. For code that is public domain/CC0 relicensing should be easy.

unsigned i;
#if defined(MLD_SYS_LITTLE_ENDIAN)
#if defined(MLD_USE_FIPS202_X1_NATIVE)
(void) i;
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this and move the unsigned i inside of the other block instead.

Makefile Outdated
# SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT

.PHONY: func kat acvp stack \
.PHONY: func kat acvp stack keccak \
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use the same naming as in mlkem-native and call this unit: https://github.com/pq-code-package/mlkem-native/blob/9ae2223e835c1abcc8d6857dd3b7f8ce00a05216/Makefile#L84?

If we can keep the diff to mlkem-native minimal that would be appreciated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I will attempt to set this up more like the unit test framework in mlkem-native.

@bremoran bremoran force-pushed the armv8.1-m-native branch 2 times, most recently from cb94d1c to d45104c Compare October 8, 2025 12:51
Add unit tests for FIPS202 APIs
Add unit tests for x4 keccak

Signed-off-by: Brendan Moran <[email protected]>
Signed-off-by: Brendan Moran <[email protected]>
Signed-off-by: Brendan Moran <[email protected]>
Signed-off-by: Brendan Moran <[email protected]>
Signed-off-by: Brendan Moran <[email protected]>
@bremoran bremoran requested a review from mkannwischer October 13, 2025 15:24
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.

2 participants