Skip to content

Commit 343a4ba

Browse files
authored
Fix CI failures on main (#694)
1 parent 5cceacf commit 343a4ba

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

russh/Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,24 @@ serde = ["ssh-key/serde"]
2828
_bench = ["dep:criterion"]
2929

3030
[dependencies]
31+
# Compatibility floor pins for cargo-minimal-versions. These are otherwise
32+
# transitive members of the RustCrypto prerelease stack; some are renamed to
33+
# coexist with older direct dependency lines.
34+
aead_0_6 = { package = "aead", version = "0.6.0-rc.10" }
3135
aes.workspace = true
36+
aes_0_9 = { package = "aes", version = "0.9.0" }
37+
aes_gcm_0_11 = { package = "aes-gcm", version = "0.11.0-rc.3" }
3238
async-trait = { workspace = true, optional = true }
3339
aws-lc-rs = { version = "1.16.2", optional = true }
3440
bitflags = "2.0"
3541
block-padding = { version = "0.3", features = ["std"] }
3642
byteorder.workspace = true
3743
bytes.workspace = true
3844
cbc = { version = "0.1" }
45+
cbc_0_2 = { package = "cbc", version = "0.2.0" }
3946
cipher = "0.5.1" # only pinned due to a cargo-minimal-versions failure in 0.5.0
4047
ctr = "0.9"
48+
ctr_0_10 = { package = "ctr", version = "0.10.0" }
4149
curve25519-dalek = "5.0.0-pre.6"
4250
crypto-bigint = { version = "0.7.0-rc.28", features = ["alloc"] }
4351
data-encoding = "2.3"
@@ -53,9 +61,13 @@ flate2 = { version = "1.0.15", optional = true }
5361
futures.workspace = true
5462
generic-array = { version = "1.3.3", features = ["compat-0_14"] }
5563
getrandom = { version = "0.2.15", features = ["js"] }
64+
ghash = "0.6.0" # only pinned due to a cargo-minimal-versions failure in 0.6.0-rc.3
5665
hex-literal = "1"
66+
hkdf = "0.13.0"
5767
hmac.workspace = true
68+
hmac_0_13 = { package = "hmac", version = "0.13.0" }
5869
inout = { version = "0.1", features = ["std"] }
70+
keccak = "0.2.0"
5971
log.workspace = true
6072
md5 = "0.7"
6173
ml-kem = "0.3.0-rc.1"
@@ -64,11 +76,13 @@ module-lattice = "0.2"
6476
# via the `rand_0_10` feature flag. Replace with upstream once a release with
6577
# rand 0.10 support is published. https://github.com/rust-num/num-bigint/pull/338
6678
num-bigint = { package = "internal-russh-num-bigint", version = "=0.5.0", features = ["rand_0_10"] }
79+
num_bigint_0_4 = { package = "num-bigint", version = "0.4.6" }
6780
# num-integer = "0.1"
6881
p256 = { version = "0.14.0-rc.7", features = ["ecdh"] }
6982
p384 = { version = "0.14.0-rc.7", features = ["ecdh"] }
7083
p521 = { version = "0.14.0-rc.7", features = ["ecdh"] }
7184
pbkdf2 = "0.12"
85+
pbkdf2_0_13 = { package = "pbkdf2", version = "0.13.0" }
7286
pkcs1 = { version = "0.8.0-rc.4", optional = true }
7387
pkcs5 = "0.8.0-rc.13"
7488
pkcs8 = { version = "0.11.0-rc.11", features = ["encryption", "std"] }
@@ -81,9 +95,14 @@ russh-cryptovec = { version = "0.59.0", path = "../cryptovec", features = [
8195
"ssh-encoding",
8296
] }
8397
russh-util = { version = "0.52.0", path = "../russh-util" }
98+
salsa20 = "0.11.0"
99+
scrypt = "0.12.0"
84100
sec1 = { version = "0.8", features = ["der"] }
85101
sha1.workspace = true
102+
sha1_0_11 = { package = "sha1", version = "0.11.0" }
86103
sha2.workspace = true
104+
sha2_0_11 = { package = "sha2", version = "0.11.0" }
105+
sha3 = "0.11.0"
87106
signature.workspace = true
88107
spki = "0.8.0-rc.4"
89108
ssh-encoding.workspace = true

russh/src/negotiation.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,23 +131,14 @@ const CIPHER_ORDER: &[cipher::Name] = &[
131131
cipher::AES_128_CTR,
132132
];
133133

134-
// SHA-1 MAC variants excluded; see HMAC_ORDER for the full list including legacy algorithms.
134+
// SHA-1 MAC variants are excluded from defaults.
135135
const SAFE_HMAC_ORDER: &[mac::Name] = &[
136136
mac::HMAC_SHA512_ETM,
137137
mac::HMAC_SHA256_ETM,
138138
mac::HMAC_SHA512,
139139
mac::HMAC_SHA256,
140140
];
141141

142-
const HMAC_ORDER: &[mac::Name] = &[
143-
mac::HMAC_SHA512_ETM,
144-
mac::HMAC_SHA256_ETM,
145-
mac::HMAC_SHA512,
146-
mac::HMAC_SHA256,
147-
mac::HMAC_SHA1_ETM,
148-
mac::HMAC_SHA1,
149-
];
150-
151142
const COMPRESSION_ORDER: &[compression::Name] = &[
152143
compression::NONE,
153144
#[cfg(feature = "flate2")]

0 commit comments

Comments
 (0)