diff --git a/Cargo.lock b/Cargo.lock index 169cb2633bd2..035a5591c43a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3260,9 +3260,9 @@ dependencies = [ [[package]] name = "shadowsocks-crypto" -version = "0.5.6" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e4c5a437e27929c991daa2073b130fd94731ebdc2ba771be95aed5029defcae" +checksum = "bc77ecb3a97509d22751b76665894fcffad2d10df8758f4e3f20c92ccde6bf4f" dependencies = [ "aead", "aes", diff --git a/crates/shadowsocks/Cargo.toml b/crates/shadowsocks/Cargo.toml index fb9c336f067c..8c5e0e60e0be 100644 --- a/crates/shadowsocks/Cargo.toml +++ b/crates/shadowsocks/Cargo.toml @@ -93,12 +93,12 @@ aes = { version = "0.8", optional = true } blake3 = "1.5" [target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))'.dependencies] -shadowsocks-crypto = { version = "0.5.4", default-features = false, features = [ +shadowsocks-crypto = { version = "0.5.8", default-features = false, features = [ "ring", ] } [target.'cfg(not(any(target_arch = "x86_64", target_arch = "aarch64")))'.dependencies] -shadowsocks-crypto = { version = "0.5.4", default-features = false, features = [ +shadowsocks-crypto = { version = "0.5.8", default-features = false, features = [ ] } [target.'cfg(any(windows, target_os = "linux", target_os = "android", target_os = "freebsd", target_os = "macos", target_os = "ios", target_os = "watchos", target_os = "tvos"))'.dependencies] diff --git a/crates/shadowsocks/src/context.rs b/crates/shadowsocks/src/context.rs index 17f0fd09831f..1ebc0b279711 100644 --- a/crates/shadowsocks/src/context.rs +++ b/crates/shadowsocks/src/context.rs @@ -67,7 +67,7 @@ impl Context { #[cfg(any(feature = "stream-cipher", feature = "aead-cipher", feature = "aead-cipher-2022"))] loop { - use crate::crypto::v1::random_iv_or_salt; + use crate::crypto::utils::random_iv_or_salt; random_iv_or_salt(nonce);