Skip to content

Commit

Permalink
feat: random_iv_or_salt made independent in crypto::utils
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Nov 2, 2024
1 parent 466309b commit e2ae9c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions crates/shadowsocks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion crates/shadowsocks/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e2ae9c8

Please sign in to comment.