| 1 |
# Changelog |
| 2 |
|
| 3 |
All notable changes to this project will be documented in this file. |
| 4 |
|
| 5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) |
| 6 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 |
|
| 8 |
## 0.10.2 (2026-08-27) |
| 9 |
### Fixed |
| 10 |
- Use of SSE4.1 intrinsic in SSE2 backend of RNG and legacy (64-bit counter) variants ([#580]) |
| 11 |
|
| 12 |
[#580]: https://github.com/RustCrypto/stream-ciphers/pull/580 |
| 13 |
|
| 14 |
## 0.10.1 (2026-06-24) |
| 15 |
### Added |
| 16 |
- `ChaCha20LegacyCore` type and `Nonce` type alias ([#570]) |
| 17 |
|
| 18 |
[#570]: https://github.com/RustCrypto/stream-ciphers/pull/570 |
| 19 |
|
| 20 |
## 0.10.0 (2026-02-07) |
| 21 |
### Added |
| 22 |
- `rand_core` v0.10 support ([#333], [#513]) |
| 23 |
- 64-bit counter support ([#439]) |
| 24 |
- `{get,set}_block_pos` inherent methods ([#516]) |
| 25 |
- AVX-512 backend - requires `--cfg chacha20_avx512` to enable ([#477]) |
| 26 |
- Inherent methods for RNG state (de)serialization ([#541]) |
| 27 |
|
| 28 |
### Changed |
| 29 |
- Bump `cipher` from `0.4` to `0.5` - replaces `generic-array` with `hybrid-array` ([#338], [#521]) |
| 30 |
- Edition changed to 2024 and MSRV bumped to 1.85 ([#397]) |
| 31 |
- Relax MSRV policy and allow MSRV bumps in patch releases |
| 32 |
- Bump `cpufeatures` to v0.3 ([#530]) |
| 33 |
- `--cfg chacha20_backend="..."` replaces previous `chacha20_force*` ([#520]) |
| 34 |
- `chacha20_force_avx2` => `chacha20_backend="avx2"` |
| 35 |
- `chacha20_force_avx512` => `chacha20_backend="avx512"` |
| 36 |
- `chacha20_force_soft` => `chacha20_backend="soft"` |
| 37 |
- `chacha20_force_sse2` => `chacha20_backend="sse2"` |
| 38 |
|
| 39 |
### Removed |
| 40 |
- `chacha20_force_neon` cfg attribute - now on-by-default for supported targets ([#361]) |
| 41 |
- `std` feature ([#397]) |
| 42 |
- `Clone` impls ([#462]) |
| 43 |
|
| 44 |
[#333]: https://github.com/RustCrypto/stream-ciphers/pull/333 |
| 45 |
[#338]: https://github.com/RustCrypto/stream-ciphers/pull/338 |
| 46 |
[#361]: https://github.com/RustCrypto/stream-ciphers/pull/361 |
| 47 |
[#397]: https://github.com/RustCrypto/stream-ciphers/pull/397 |
| 48 |
[#439]: https://github.com/RustCrypto/stream-ciphers/pull/439 |
| 49 |
[#462]: https://github.com/RustCrypto/stream-ciphers/pull/462 |
| 50 |
[#477]: https://github.com/RustCrypto/stream-ciphers/pull/477 |
| 51 |
[#513]: https://github.com/RustCrypto/stream-ciphers/pull/513 |
| 52 |
[#516]: https://github.com/RustCrypto/stream-ciphers/pull/516 |
| 53 |
[#520]: https://github.com/RustCrypto/stream-ciphers/pull/520 |
| 54 |
[#521]: https://github.com/RustCrypto/stream-ciphers/pull/521 |
| 55 |
[#530]: https://github.com/RustCrypto/stream-ciphers/pull/530 |
| 56 |
[#541]: https://github.com/RustCrypto/stream-ciphers/pull/541 |
| 57 |
|
| 58 |
## 0.9.1 (2023-04-01) |
| 59 |
### Added |
| 60 |
- NEON support via `chacha20_force_neon` cfg attribute ([#310], [#317]) |
| 61 |
|
| 62 |
[#310]: https://github.com/RustCrypto/stream-ciphers/pull/310 |
| 63 |
[#317]: https://github.com/RustCrypto/stream-ciphers/pull/317 |
| 64 |
|
| 65 |
## 0.9.0 (2022-02-21) |
| 66 |
### Added |
| 67 |
- `chacha20_force_soft`, `chacha20_force_sse2`, and `chacha20_force_avx2` |
| 68 |
configuration flags ([#293]) |
| 69 |
|
| 70 |
### Changed |
| 71 |
- Bump `cipher` dependency to v0.4 ([#276]) |
| 72 |
|
| 73 |
### Fixed |
| 74 |
- Minimal versions build ([#290]) |
| 75 |
|
| 76 |
### Removed |
| 77 |
- `neon`, `force-soft`, `expose-core`, `hchacha`, `legacy`, and `rng` features ([#276], [#293]) |
| 78 |
|
| 79 |
[#276]: https://github.com/RustCrypto/stream-ciphers/pull/276 |
| 80 |
[#290]: https://github.com/RustCrypto/stream-ciphers/pull/290 |
| 81 |
[#293]: https://github.com/RustCrypto/stream-ciphers/pull/293 |
| 82 |
|
| 83 |
## 0.8.2 (2022-07-07) |
| 84 |
### Changed |
| 85 |
- Unpin `zeroize` dependency ([#301]) |
| 86 |
|
| 87 |
[#301]: https://github.com/RustCrypto/stream-ciphers/pull/301 |
| 88 |
|
| 89 |
## 0.8.1 (2021-08-30) |
| 90 |
### Added |
| 91 |
- NEON implementation for aarch64 ([#274]) |
| 92 |
|
| 93 |
[#274]: https://github.com/RustCrypto/stream-ciphers/pull/274 |
| 94 |
|
| 95 |
## 0.8.0 (2021-08-29) |
| 96 |
### Added |
| 97 |
- SSE2 autodetection support ([#270]) |
| 98 |
|
| 99 |
### Changed |
| 100 |
- AVX2 performance improvements ([#267], [#267]) |
| 101 |
- MSRV 1.51+ ([#267]) |
| 102 |
- Lock to `zeroize` <1.5 ([#269]) |
| 103 |
|
| 104 |
### Removed |
| 105 |
- `xchacha` feature: all `XChaCha*` types are now available by-default ([#271]) |
| 106 |
|
| 107 |
[#267]: https://github.com/RustCrypto/stream-ciphers/pull/267 |
| 108 |
[#269]: https://github.com/RustCrypto/stream-ciphers/pull/269 |
| 109 |
[#270]: https://github.com/RustCrypto/stream-ciphers/pull/270 |
| 110 |
[#271]: https://github.com/RustCrypto/stream-ciphers/pull/271 |
| 111 |
|
| 112 |
## 0.7.3 (2021-08-27) |
| 113 |
### Changed |
| 114 |
- Improve AVX2 performance ([#261]) |
| 115 |
- Bump `cpufeatures` to v0.2 ([#265]) |
| 116 |
|
| 117 |
[#261]: https://github.com/RustCrypto/stream-ciphers/pull/261 |
| 118 |
[#265]: https://github.com/RustCrypto/stream-ciphers/pull/265 |
| 119 |
|
| 120 |
## 0.7.2 (2021-07-20) |
| 121 |
### Changed |
| 122 |
- Pin `zeroize` dependency to v1.3 ([#256]) |
| 123 |
|
| 124 |
[#256]: https://github.com/RustCrypto/stream-ciphers/pull/256 |
| 125 |
|
| 126 |
## 0.7.1 (2021-04-29) |
| 127 |
### Added |
| 128 |
- `hchacha` feature ([#234]) |
| 129 |
|
| 130 |
[#234]: https://github.com/RustCrypto/stream-ciphers/pull/234 |
| 131 |
|
| 132 |
## 0.7.0 (2021-04-29) [YANKED] |
| 133 |
### Added |
| 134 |
- AVX2 detection; MSRV 1.49+ ([#200], [#212]) |
| 135 |
- `XChaCha8` and `XChaCha12` ([#215]) |
| 136 |
|
| 137 |
### Changed |
| 138 |
- Full 64-bit counters ([#217]) |
| 139 |
- Bump `cipher` crate dependency to v0.3 release ([#226]) |
| 140 |
|
| 141 |
### Fixed |
| 142 |
- `rng` feature on big endian platforms ([#202]) |
| 143 |
- Stream-length overflow check ([#216]) |
| 144 |
|
| 145 |
### Removed |
| 146 |
- `Clone` impls on RNGs ([#220]) |
| 147 |
|
| 148 |
[#200]: https://github.com/RustCrypto/stream-ciphers/pull/200 |
| 149 |
[#202]: https://github.com/RustCrypto/stream-ciphers/pull/202 |
| 150 |
[#212]: https://github.com/RustCrypto/stream-ciphers/pull/212 |
| 151 |
[#215]: https://github.com/RustCrypto/stream-ciphers/pull/215 |
| 152 |
[#216]: https://github.com/RustCrypto/stream-ciphers/pull/216 |
| 153 |
[#217]: https://github.com/RustCrypto/stream-ciphers/pull/217 |
| 154 |
[#220]: https://github.com/RustCrypto/stream-ciphers/pull/220 |
| 155 |
[#226]: https://github.com/RustCrypto/stream-ciphers/pull/226 |
| 156 |
|
| 157 |
## 0.6.0 (2020-10-16) |
| 158 |
### Changed |
| 159 |
- Rename `Cipher` to `ChaCha` ([#177]) |
| 160 |
- Replace `block-cipher`/`stream-cipher` with `cipher` crate ([#177]) |
| 161 |
|
| 162 |
[#177]: https://github.com/RustCrypto/stream-ciphers/pull/177 |
| 163 |
|
| 164 |
## 0.5.0 (2020-08-25) |
| 165 |
### Changed |
| 166 |
- Bump `stream-cipher` dependency to v0.7 ([#161], [#164]) |
| 167 |
|
| 168 |
[#161]: https://github.com/RustCrypto/stream-ciphers/pull/161 |
| 169 |
[#164]: https://github.com/RustCrypto/stream-ciphers/pull/164 |
| 170 |
|
| 171 |
## 0.4.3 (2020-06-11) |
| 172 |
### Changed |
| 173 |
- Documentation improvements ([#153], [#154], [#155]) |
| 174 |
|
| 175 |
[#153]: https://github.com/RustCrypto/stream-ciphers/pull/155 |
| 176 |
[#154]: https://github.com/RustCrypto/stream-ciphers/pull/155 |
| 177 |
[#155]: https://github.com/RustCrypto/stream-ciphers/pull/155 |
| 178 |
|
| 179 |
## 0.4.2 (2020-06-11) |
| 180 |
### Added |
| 181 |
- Documentation improvements ([#149]) |
| 182 |
- `Key`, `Nonce`, `XNonce`, and `LegacyNonce` type aliases ([#147]) |
| 183 |
|
| 184 |
[#149]: https://github.com/RustCrypto/stream-ciphers/pull/149 |
| 185 |
[#147]: https://github.com/RustCrypto/stream-ciphers/pull/147 |
| 186 |
|
| 187 |
## 0.4.1 (2020-06-06) |
| 188 |
### Fixed |
| 189 |
- Links in documentation ([#142]) |
| 190 |
|
| 191 |
[#142]: https://github.com/RustCrypto/stream-ciphers/pull/142 |
| 192 |
|
| 193 |
## 0.4.0 (2020-06-06) |
| 194 |
### Changed |
| 195 |
- Upgrade to the `stream-cipher` v0.4 crate ([#121], [#138]) |
| 196 |
|
| 197 |
[#138]: https://github.com/RustCrypto/stream-ciphers/pull/138 |
| 198 |
[#121]: https://github.com/RustCrypto/stream-ciphers/pull/121 |
| 199 |
|
| 200 |
## 0.3.4 (2020-03-02) |
| 201 |
### Fixed |
| 202 |
- Avoid accidental `alloc` and `std` linking ([#105]) |
| 203 |
|
| 204 |
[#105]: https://github.com/RustCrypto/stream-ciphers/pull/105 |
| 205 |
|
| 206 |
## 0.3.3 (2020-01-18) |
| 207 |
### Changed |
| 208 |
- Replace macros with `Rounds` trait + generics ([#100]) |
| 209 |
|
| 210 |
### Fixed |
| 211 |
- Fix warnings when building with `rng` feature alone ([#99]) |
| 212 |
|
| 213 |
[#99]: https://github.com/RustCrypto/stream-ciphers/pull/99 |
| 214 |
[#100]: https://github.com/RustCrypto/stream-ciphers/pull/100 |
| 215 |
|
| 216 |
## 0.3.2 (2020-01-17) |
| 217 |
### Added |
| 218 |
- `CryptoRng` marker on all `ChaCha*Rng` types ([#91]) |
| 219 |
|
| 220 |
[#91]: https://github.com/RustCrypto/stream-ciphers/pull/91 |
| 221 |
|
| 222 |
## 0.3.1 (2020-01-16) |
| 223 |
### Added |
| 224 |
- Parallelize AVX2 backend ([#87]) |
| 225 |
- Benchmark for `ChaCha20Rng` ([#87]) |
| 226 |
|
| 227 |
### Fixed |
| 228 |
- Fix broken buffering logic ([#86]) |
| 229 |
|
| 230 |
[#86]: https://github.com/RustCrypto/stream-ciphers/pull/86 |
| 231 |
[#87]: https://github.com/RustCrypto/stream-ciphers/pull/87 |
| 232 |
|
| 233 |
## 0.3.0 (2020-01-15) [YANKED] |
| 234 |
|
| 235 |
NOTE: This release was yanked due to a showstopper bug in the newly added |
| 236 |
buffering logic which when seeking in the keystream could result in plaintexts |
| 237 |
being clobbered with the keystream instead of XOR'd correctly. |
| 238 |
|
| 239 |
The bug was addressed in v0.3.1 ([#86]). |
| 240 |
|
| 241 |
### Added |
| 242 |
- AVX2 accelerated implementation ([#83]) |
| 243 |
- ChaCha8 and ChaCha20 reduced round variants ([#84]) |
| 244 |
|
| 245 |
### Changed |
| 246 |
- Simplify portable implementation ([#76]) |
| 247 |
- Make 2018 edition crate; MSRV 1.34+ ([#77]) |
| 248 |
- Replace `salsa20-core` dependency with `ctr`-derived buffering ([#81]) |
| 249 |
|
| 250 |
### Removed |
| 251 |
- `byteorder` dependency ([#80]) |
| 252 |
|
| 253 |
[#76]: https://github.com/RustCrypto/stream-ciphers/pull/76 |
| 254 |
[#77]: https://github.com/RustCrypto/stream-ciphers/pull/77 |
| 255 |
[#80]: https://github.com/RustCrypto/stream-ciphers/pull/80 |
| 256 |
[#81]: https://github.com/RustCrypto/stream-ciphers/pull/81 |
| 257 |
[#83]: https://github.com/RustCrypto/stream-ciphers/pull/83 |
| 258 |
[#84]: https://github.com/RustCrypto/stream-ciphers/pull/84 |
| 259 |
|
| 260 |
## 0.2.3 (2019-10-23) |
| 261 |
### Security |
| 262 |
- Ensure block counter < MAX_BLOCKS ([#68]) |
| 263 |
|
| 264 |
[#68]: https://github.com/RustCrypto/stream-ciphers/pull/68 |
| 265 |
|
| 266 |
## 0.2.2 (2019-10-22) |
| 267 |
### Added |
| 268 |
- SSE2 accelerated implementation ([#61]) |
| 269 |
|
| 270 |
[#61]: https://github.com/RustCrypto/stream-ciphers/pull/61 |
| 271 |
|
| 272 |
## 0.2.1 (2019-08-19) |
| 273 |
### Added |
| 274 |
- Add `MAX_BLOCKS` and `BLOCK_SIZE` constants ([#47]) |
| 275 |
|
| 276 |
[#47]: https://github.com/RustCrypto/stream-ciphers/pull/47 |
| 277 |
|
| 278 |
## 0.2.0 (2019-08-18) |
| 279 |
### Added |
| 280 |
- `impl SyncStreamCipher` ([#39]) |
| 281 |
- `XChaCha20` ([#36]) |
| 282 |
- Support for 12-byte nonces ala RFC 8439 ([#19]) |
| 283 |
|
| 284 |
### Changed |
| 285 |
- Refactor around a `ctr`-like type ([#44]) |
| 286 |
- Extract and encapsulate `Cipher` type ([#43]) |
| 287 |
- Switch tests to use `new_sync_test!` ([#42]) |
| 288 |
- Refactor into `ChaCha20` and `ChaCha20Legacy` ([#25]) |
| 289 |
|
| 290 |
### Fixed |
| 291 |
- Fix `zeroize` cargo feature ([#21]) |
| 292 |
- Fix broken Cargo feature attributes ([#21]) |
| 293 |
|
| 294 |
[#44]: https://github.com/RustCrypto/stream-ciphers/pull/44 |
| 295 |
[#43]: https://github.com/RustCrypto/stream-ciphers/pull/43 |
| 296 |
[#42]: https://github.com/RustCrypto/stream-ciphers/pull/42 |
| 297 |
[#39]: https://github.com/RustCrypto/stream-ciphers/pull/39 |
| 298 |
[#36]: https://github.com/RustCrypto/stream-ciphers/pull/36 |
| 299 |
[#25]: https://github.com/RustCrypto/stream-ciphers/pull/25 |
| 300 |
[#21]: https://github.com/RustCrypto/stream-ciphers/pull/21 |
| 301 |
[#19]: https://github.com/RustCrypto/stream-ciphers/pull/19 |
| 302 |
|
| 303 |
## 0.1.0 (2019-06-24) |
| 304 |
|
| 305 |
- Initial release |