aboutsummaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
Diffstat (limited to 'benches')
-rw-r--r--benches/zears.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/benches/zears.rs b/benches/zears.rs
index 8ea78ba..1144087 100644
--- a/benches/zears.rs
+++ b/benches/zears.rs
@@ -23,6 +23,11 @@ fn bench(c: &mut Criterion) {
b.iter(|| aez.encrypt_inplace(&[0], &[], 16, &mut out))
});
+ group.bench_function(BenchmarkId::new("aez_prf", size), |b| {
+ let mut out = vec![0u8; size];
+ b.iter(|| aez.encrypt_inplace(&[0], &[], size as u32, &mut out))
+ });
+
let buf = aez.encrypt(&[0], &[], 16, &buf);
group.bench_function(BenchmarkId::new("decrypt", size), |b| {