Skip to content

Commit 2c19321

Browse files
authored
cipher: fix Key: option in the stream_cipher_bench macro (#2290)
The option was not used in downstream crates. I tried to use it in RustCrypto/stream-ciphers#544, but it failed because of the incorrect implementation. For now I worked around it by using the `Init:` option, so we are in no rush to release the fix.
1 parent c2deb38 commit 2c19321

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

cipher/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.5.1 (UNRELEASED)
9+
### Fixed
10+
- `Key:` option in the `stream_cipher_bench` macro ([#2290])
11+
12+
[#2290]: https://github.com/RustCrypto/traits/pull/2290
13+
814
## 0.5.0 (2026-02-04)
915
### Added
1016
- Traits for tweakable block ciphers ([#1721])

cipher/src/dev/stream.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ macro_rules! stream_cipher_bench {
151151
Init: {
152152
use $crate::KeyInit;
153153
let key = test::black_box(Default::default());
154-
let iv = test::black_box(Default::default());
155-
<$cipher>::new(&key, &iv)
154+
<$cipher>::new(&key)
156155
};
157156
$($name $bs;)*
158157
);

0 commit comments

Comments
 (0)