Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed ML-KEM benches #55

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Fixed ML-KEM benches #55

merged 2 commits into from
Sep 5, 2024

Conversation

rozbb
Copy link
Contributor

@rozbb rozbb commented Aug 23, 2024

Benches weren't compiling. They were using non-public deterministic functions. Now they use the random functions. Also I removed key parsing from the encap and decap functions. IMO they should just be doing encap/decap, but I can add ser/deser back in if you think it really belongs there.

@tarcieri
Copy link
Member

Aah, I see what was happening: they're tested in CI here:

https://github.com/RustCrypto/KEMs/blob/master/.github/workflows/ml-kem.yml#L67

But that's running cargo build --benches --all-features.

I think this change is fine, but we should also update the CI config to ensure cargo build --benches works without the --all-features in that case.

@tarcieri tarcieri requested a review from bifurcation August 24, 2024 14:40
@rozbb
Copy link
Contributor Author

rozbb commented Aug 24, 2024

Ah makes sense. Ok I’ll do that

@rozbb
Copy link
Contributor Author

rozbb commented Aug 28, 2024

Done

@tarcieri tarcieri merged commit 41ae1d6 into RustCrypto:master Sep 5, 2024
13 checks passed
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