From c520c90b76f597d8fbcf07e3ab5678357101abff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Mon, 9 Feb 2026 17:28:44 +0300 Subject: [PATCH 1/2] cipher: fix `Key:` option in the `stream_cipher_bench` macro --- cipher/src/dev/stream.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cipher/src/dev/stream.rs b/cipher/src/dev/stream.rs index 55ca6e5f9..b52136314 100644 --- a/cipher/src/dev/stream.rs +++ b/cipher/src/dev/stream.rs @@ -151,8 +151,7 @@ macro_rules! stream_cipher_bench { Init: { use $crate::KeyInit; let key = test::black_box(Default::default()); - let iv = test::black_box(Default::default()); - <$cipher>::new(&key, &iv) + <$cipher>::new(&key) }; $($name $bs;)* ); From 1eeef3965310b47f93f218cf0dab1407f3d5c492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Mon, 9 Feb 2026 17:31:23 +0300 Subject: [PATCH 2/2] Update changelog --- cipher/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cipher/CHANGELOG.md b/cipher/CHANGELOG.md index f9ac2eac0..a35d5aebb 100644 --- a/cipher/CHANGELOG.md +++ b/cipher/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.5.1 (UNRELEASED) +### Fixed +- `Key:` option in the `stream_cipher_bench` macro ([#2290]) + +[#2290]: https://github.com/RustCrypto/traits/pull/2290 + ## 0.5.0 (2026-02-04) ### Added - Traits for tweakable block ciphers ([#1721])