Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/wx-rust-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ redis = { workspace = true, optional = true }
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
# RSA mitigation 测试:rsa 0.9 依赖 rand_core 0.6(与 workspace rand 0.10 不兼容)
rand_core = { version = "0.6", features = ["getrandom"] }
rand_core = { version = "0.10", features = ["getrandom"] }

[[bench]]
name = "crypto_bench"
Expand Down
2 changes: 1 addition & 1 deletion crates/wx-rust-cp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ rsa = { workspace = true }
hex = { workspace = true }

[dev-dependencies]
rand_core = "0.6"
rand_core = "0.10"

[package.metadata.docs.rs]
all-features = true
2 changes: 1 addition & 1 deletion crates/wx-rust-pay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ x509-cert = "0.2.5"
# PKCS#12 容器解析:Java KeyStore.getInstance("PKCS12") 的 Rust 等价(纯 Rust;见 WxPayConfig.p12ToPem)
p12 = "0.6.3"
# rsa 0.9 的 RNG(rand_core 0.6 系;workspace 的 rand 0.10 与其不兼容),OsRng 用于 RSA 签名盲化/OAEP 加密
rand_core = { version = "0.6.4", features = ["getrandom"] }
rand_core = { version = "0.10.1", features = ["getrandom"] }
# RSA-OAEP 敏感信息加密使用 SHA-1(Java RsaCryptoUtil:RSA/ECB/OAEPWithSHA-1AndMGF1Padding;rsa 0.9 内部 digest 为 0.10 系,workspace sha1 0.11 不适用)
sha1 = "0.10.6"

Expand Down
Loading