We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5b2973 commit 6dd52f8Copy full SHA for 6dd52f8
benches/src/dndk-gcm.rs
@@ -24,7 +24,9 @@ fn bench(c: &mut Benchmarker) {
24
});
25
group.bench_function(BenchmarkId::new("decrypt-256", size), |b| {
26
let cipher = DndkGcm::new(&Default::default());
27
- b.iter(|| cipher.decrypt(&Default::default(), &*buf))
+ let nonce = Default::default();
28
+ let ciphertext = cipher.encrypt(&nonce, &*buf).unwrap();
29
+ b.iter(|| cipher.decrypt(&nonce, ciphertext.as_ref()))
30
31
}
32
0 commit comments