diff options
| author | Daniel Schadt <kingdread@gmx.de> | 2026-04-28 17:57:28 +0200 |
|---|---|---|
| committer | Daniel Schadt <kingdread@gmx.de> | 2026-04-28 17:57:28 +0200 |
| commit | 13fb026842345a5aad0cb7788bf327e03b521222 (patch) | |
| tree | 254abb4c22772f6851bca2557d02aabaedceae8c /benches/leona.rs | |
| parent | 3f31e03159406b238f6ded01903cbdbc1b3b499a (diff) | |
| download | leona-13fb026842345a5aad0cb7788bf327e03b521222.tar.gz leona-13fb026842345a5aad0cb7788bf327e03b521222.tar.bz2 leona-13fb026842345a5aad0cb7788bf327e03b521222.zip | |
add benchmark with sha3
Diffstat (limited to 'benches/leona.rs')
| -rw-r--r-- | benches/leona.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/benches/leona.rs b/benches/leona.rs index fe6329e..b2d26a7 100644 --- a/benches/leona.rs +++ b/benches/leona.rs @@ -8,6 +8,7 @@ use chacha20::ChaCha20; use ctr::Ctr32BE; use hmac::Hmac; use sha2::Sha256; +use sha3::Sha3_256; use typenum::U32; use cipher::stream::StreamCipher; @@ -44,9 +45,11 @@ where fn bench(c: &mut Criterion) { inner::<ZeroIv<ChaCha20>, Blake2sMac256>(c, "chacha20", "blake2s256"); inner::<ZeroIv<ChaCha20>, KeyedHash<U32, Sha256>>(c, "chacha20", "sha256"); + inner::<ZeroIv<ChaCha20>, KeyedHash<U32, Sha3_256>>(c, "chacha20", "sha3_256"); inner::<ZeroIv<ChaCha20>, Hmac<Sha256>>(c, "chacha20", "sha256-hmac"); inner::<ZeroIv<Ctr32BE<Aes256>>, Blake2sMac256>(c, "aes256", "blake2s256"); inner::<ZeroIv<Ctr32BE<Aes256>>, KeyedHash<U32, Sha256>>(c, "aes256", "sha256"); + inner::<ZeroIv<Ctr32BE<Aes256>>, KeyedHash<U32, Sha3_256>>(c, "aes256", "sha3_256"); inner::<ZeroIv<Ctr32BE<Aes256>>, Hmac<Sha256>>(c, "aes256", "sha256-hmac"); } |
