[package]
edition = "2024"
rust-version = "1.87"
name = "ssh-protocol"
version = "0.4.0"
authors = ["RustCrypto Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Pure Rust implementation of the SSH protocol as described in RFC4251/RFC4253 as well as
OpenSSH-specific extensions (WIP)
"""
homepage = "https://github.com/RustCrypto/SSH/tree/master/ssh-protocol"
readme = "README.md"
keywords = [
"crypto",
"certificate",
"openssh",
"ssh",
"sshsig",
]
categories = [
"authentication",
"cryptography",
"encoding",
"no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/SSH"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
alloc = [
"encoding/alloc",
"key/alloc",
]
default = ["std"]
mlkem768x25519-sha256 = [
"dep:curve25519-dalek",
"dep:ml-kem",
"dep:sha2",
"dep:x25519-dalek",
"dep:zeroize",
"encoding/derive",
]
std = [
"alloc",
"key/std",
]
[lib]
name = "ssh_protocol"
path = "src/lib.rs"
[[test]]
name = "kex"
path = "tests/kex.rs"
[[test]]
name = "mlkem768x25519"
path = "tests/mlkem768x25519.rs"
[dependencies.cipher]
version = "0.4"
default-features = false
package = "ssh-cipher"
[dependencies.curve25519-dalek]
version = "5.1"
optional = true
default-features = false
[dependencies.encoding]
version = "0.4.1"
features = ["digest"]
default-features = false
package = "ssh-encoding"
[dependencies.key]
version = "0.7"
default-features = false
package = "ssh-key"
[dependencies.ml-kem]
version = "0.3"
features = ["zeroize"]
optional = true
default-features = false
[dependencies.rand_core]
version = "0.10"
default-features = false
[dependencies.sha2]
version = "0.11"
features = ["zeroize"]
optional = true
default-features = false
[dependencies.x25519-dalek]
version = "3"
features = ["zeroize"]
optional = true
default-features = false
[dependencies.zeroize]
version = "1.8"
optional = true
default-features = false
[dev-dependencies.chacha20]
version = "0.10"
features = ["rng"]
[dev-dependencies.sha2]
version = "0.11"
default-features = false
[lints.clippy]
as_conversions = "warn"
borrow_as_ptr = "warn"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "warn"
checked_conversions = "warn"
implicit_saturating_sub = "warn"
integer_division_remainder_used = "warn"
manual_assert = "warn"
map_unwrap_or = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
mod_module_files = "warn"
must_use_candidate = "warn"
needless_range_loop = "allow"
ptr_as_ptr = "warn"
redundant_closure_for_method_calls = "warn"
ref_as_ptr = "warn"
return_self_not_must_use = "warn"
semicolon_if_nothing_returned = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
trivially_copy_pass_by_ref = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unwrap_used = "warn"
[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_lifetimes = "warn"
unused_qualifications = "warn"