Skip to content

Conversation

@mkannwischer
Copy link
Contributor

@mkannwischer mkannwischer commented Oct 28, 2025

With HashML-DSA support added in #498, we now have full coverage of the ACVP tests allowing us to switch to the actual ACVP flow: In real ACVP validation, the internalProjection is not available. Rather, one gets a prompt containing the inputs and has to produce a result json that has the match the expected results hold by the ACVP server.

This commit modifies the acvp_client.py to follow this flow and aligns it with the client in mlkem-native.
This in theory allows to perform CAVP validation without any changes, but I have not done that yet.

This commit ports
pq-code-package/mlkem-native#1052

With HashML-DSA support added in
#498, we now have full
coverage of the ACVP tests allowing us to switch to the actual ACVP flow:
In real ACVP validation, the internalProjection is not available.
Rather, one gets a prompt containing the inputs and has to produce a result
json that has the match the expected results hold by the ACVP server.

This commit modifies the acvp_client.py to follow this flow and aligns it with
the client in mlkem-native.
This in theory allows to perform CAVP validation without any changes, but I
have not done that yet.

Resolves
#294

Signed-off-by: Matthias J. Kannwischer <[email protected]>
@mkannwischer mkannwischer marked this pull request as ready for review October 28, 2025 04:58
@mkannwischer mkannwischer requested a review from a team as a code owner October 28, 2025 04:58
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.

LGTM, tested locally and it worked out of the box.

@hanno-becker hanno-becker merged commit 0d8fcae into main Oct 28, 2025
247 checks passed
@hanno-becker hanno-becker deleted the acvp-flow branch October 28, 2025 07:47
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.

ACVP: Adjust ACVP client to follow actual ACVP flow

3 participants