Skip to content

Commit 221f217

Browse files
authored
ml-kem: fix benchmarking code (#19)
* Fix benchmarking code * Build benchmarks in CI
1 parent 9d09fe5 commit 221f217

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

.github/workflows/ml-kem.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
- uses: dtolnay/rust-toolchain@master
6565
with:
6666
toolchain: ${{ matrix.rust }}
67+
- run: cargo build --benches --all-features
6768
- run: cargo test --no-default-features
6869
- run: cargo test
6970
- run: cargo test --all-features

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ml-kem/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ criterion = "0.5.1"
2929
hex = "0.4.3"
3030
hex-literal = "0.4.1"
3131
rand = "0.8.5"
32+
crypto-common = { version = "0.1.6", features = ["rand_core"] }
3233

3334
[[bench]]
3435
name = "mlkem"

ml-kem/benches/mlkem.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use ::kem::{Decapsulate, Encapsulate};
12
use criterion::{criterion_group, criterion_main, Criterion};
23
use crypto_common::rand_core::CryptoRngCore;
34
use hybrid_array::{Array, ArraySize};

0 commit comments

Comments
 (0)