From ee3e07781e5b8b98d1416eb3222964a0c9646996 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sat, 5 Dec 2026 17:38:57 -0700 Subject: [PATCH] ssh-protocol v0.4.0 --- Cargo.lock | 2 +- ssh-protocol/CHANGELOG.md | 37 +++++++++++++++++++++++++++++++++++++ ssh-protocol/Cargo.toml | 2 +- ssh-protocol/README.md | 4 ++-- 4 files changed, 41 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 619d6515..c589dd03 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -953,7 +953,7 @@ dependencies = [ [[package]] name = "ssh-protocol" -version = "0.3.0-rc.1" +version = "0.4.0" dependencies = [ "chacha20", "curve25519-dalek", diff --git a/ssh-protocol/CHANGELOG.md b/ssh-protocol/CHANGELOG.md index d6637e04..40605017 100644 --- a/ssh-protocol/CHANGELOG.md +++ b/ssh-protocol/CHANGELOG.md @@ -3,3 +3,40 @@ 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-05) +### Added +- Re-export `ssh-cipher`, `ssh-encoding`, and `ssh-key` as `cipher`, `encoding`, and `key`, + with common types and traits such as `Cipher`, `Encode`, `Decode`, `PrivateKey`, and + `PublicKey` at the crate root. Disable default features for `no_std` builds and + enable `alloc` separately when an allocator is available ([#236]) +- Re-export `Decoder` at the crate root ([#618]) +- Add `kex::Kex` for two-message key exchange methods and `kex::Transcript` for computing + the SSH exchange hash incrementally ([#675]) +- Add the optional `mlkem768x25519-sha256` feature for the RFC 10042 hybrid key exchange. + Both client and server work without `std` or `alloc` ([#675]) + +### Changed +- Switch to the Rust 2024 edition ([#354]) +- Gate the crate-root `Certificate` and `Signature` re-exports on `alloc`, which the + default `std` feature enables ([#362]) +- Raise the minimum supported Rust version to 1.87 ([#610]) +- `Decode::decode` now takes `&mut Decoder`. Use `Decoder::from_bytes` + to decode a byte slice ([#618], [#663]) +- Use `ssh-encoding` 0.4, `ssh-cipher` 0.4, and `ssh-key` 0.7. For composite signatures + through `key`, enable `mldsa44-ed25519` or `mldsa87-p384` on `ssh-key` ([#668], [#669], [#670]) +- Require `ssh-encoding` 0.4.1 for the `#[ssh(crate = encoding)]` derives on the KEX + wire types ([#676], [#678]) + +[#236]: https://github.com/RustCrypto/SSH/pull/236 +[#354]: https://github.com/RustCrypto/SSH/pull/354 +[#362]: https://github.com/RustCrypto/SSH/pull/362 +[#610]: https://github.com/RustCrypto/SSH/pull/610 +[#618]: https://github.com/RustCrypto/SSH/pull/618 +[#663]: https://github.com/RustCrypto/SSH/pull/663 +[#668]: https://github.com/RustCrypto/SSH/pull/668 +[#669]: https://github.com/RustCrypto/SSH/pull/669 +[#670]: https://github.com/RustCrypto/SSH/pull/670 +[#675]: https://github.com/RustCrypto/SSH/pull/675 +[#676]: https://github.com/RustCrypto/SSH/pull/676 +[#678]: https://github.com/RustCrypto/SSH/pull/678 diff --git a/ssh-protocol/Cargo.toml b/ssh-protocol/Cargo.toml index 40bc1e0a..16134f68 100644 --- a/ssh-protocol/Cargo.toml +++ b/ssh-protocol/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ssh-protocol" -version = "0.3.0-rc.1" +version = "0.4.0" description = """ Pure Rust implementation of the SSH protocol as described in RFC4251/RFC4253 as well as OpenSSH-specific extensions (WIP) diff --git a/ssh-protocol/README.md b/ssh-protocol/README.md index 9321c8a8..cc729c82 100644 --- a/ssh-protocol/README.md +++ b/ssh-protocol/README.md @@ -14,8 +14,8 @@ Pure Rust implementation of the SSH protocol as described in [RFC4251]/[RFC4253] as well as OpenSSH-specific extensions (WIP). -Includes support for `mlkem768x25519-sha256` key exchange, the post-quantum hybrid method' -described in [RFC 10042]. +Enable the `mlkem768x25519-sha256` feature for the hybrid ML-KEM-768 and X25519 key exchange +described in [RFC 10042]. It works with default features disabled and requires no allocator. ## License