Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions ssh-cipher/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,34 @@ 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.4.0 (2026-12-04)
### Changed
- Raise the minimum supported Rust version from 1.85 to 1.87 ([#610])
- Update the optional `encoding` feature to `ssh-encoding` v0.4. When decoding a
`Cipher`, pass a `&mut Decoder<impl Reader>` to `Decode::decode` ([#618], [#668])

### Fixed
- Implement `BlockModeDecrypt::decrypt_with_backend` for `Decryptor`. Both CBC and CTR
now support decrypting from one buffer into another without panicking ([#640])
- Check key and IV lengths against the selected cipher in `Encryptor::new` and
`Decryptor::new`. A mismatched key returns `Error::KeySize` and a mismatched IV
returns `Error::IvSize` ([#642])
- Correct the key order in the `ChaCha20Poly1305` packet encryption documentation and
example. The first 32 bytes encrypt the body and derive the Poly1305 key. The last
32 bytes encrypt the packet length ([#649])

### Security
- Require `ctutils` v0.4.8 for the `chacha20poly1305` feature, including upstream
constant-time fixes for mask generation and `u128` comparisons ([#610], [RUSTSEC-2026-0385])

[#610]: https://github.com/RustCrypto/SSH/pull/610
[#618]: https://github.com/RustCrypto/SSH/pull/618
[#640]: https://github.com/RustCrypto/SSH/pull/640
[#642]: https://github.com/RustCrypto/SSH/pull/642
[#649]: https://github.com/RustCrypto/SSH/pull/649
[#668]: https://github.com/RustCrypto/SSH/pull/668
[RUSTSEC-2026-0385]: https://rustsec.org/advisories/RUSTSEC-2026-0385.html

## 0.3.0 (2026-06-28)
### Added
- `Decryptor` and `Encryptor` ([#253], [#533], [#534])
Expand Down
2 changes: 1 addition & 1 deletion ssh-cipher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ssh-cipher"
version = "0.4.0-rc.0"
version = "0.4.0"
description = """
Pure Rust implementation of SSH symmetric encryption including support for the modern
aes128-gcm@openssh.com/aes256-gcm@openssh.com and chacha20-poly1305@openssh.com algorithms as well
Expand Down
2 changes: 1 addition & 1 deletion ssh-key/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ version = "0.4"
features = ["base64", "derive", "digest", "pem", "ctutils", "zeroize"]

[dependencies]
cipher = { package = "ssh-cipher", version = "0.4.0-rc.0", features = ["encoding", "zeroize"] }
cipher = { package = "ssh-cipher", version = "0.4", features = ["encoding", "zeroize"] }
ctutils = { version = "0.4.8", default-features = false }
signature = { version = "3", default-features = false }
zeroize = { version = "1.9", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion ssh-protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ edition = "2024"
rust-version = "1.87"

[dependencies]
cipher = { package = "ssh-cipher", version = "0.4.0-rc.0", default-features = false }
cipher = { package = "ssh-cipher", version = "0.4", default-features = false }
encoding = { package = "ssh-encoding", version = "0.4", default-features = false }
key = { package = "ssh-key", version = "0.7.0-rc.13", default-features = false }

Expand Down