diff --git a/Cargo.lock b/Cargo.lock index b1a047db..19c3becd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -151,9 +151,8 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42a0d26b245348befa0c121944541476763dcc46ede886c88f9d12e1697d27c3" +version = "0.7.5" +source = "git+https://github.com/baloo/crypto-bigint.git?branch=baloo%2Fpush-qmwlxxnxqywl#d97f94730bf10f5f7daed4b1e29bfb3102c8dc7c" dependencies = [ "cpubits", "ctutils", @@ -970,7 +969,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.2", + "getrandom 0.3.4", "once_cell", "rustix", "windows-sys", diff --git a/Cargo.toml b/Cargo.toml index 98df0527..d17286dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ exclude = ["marvin_toolkit/", "thirdparty/"] [dependencies] const-oid = { version = "0.10", default-features = false } -crypto-bigint = { version = "0.7", default-features = false, features = ["zeroize", "alloc"] } +crypto-bigint = { version = "0.7.5", default-features = false, features = ["zeroize", "alloc"] } crypto-primes = { version = "0.7", default-features = false } digest = { version = "0.11", default-features = false, features = ["alloc", "oid"] } rand_core = { version = "0.10", default-features = false } @@ -68,3 +68,7 @@ opt-level = 2 [profile.bench] debug = true + +[patch.crates-io] +# https://github.com/RustCrypto/crypto-bigint/pull/1338 +crypto-bigint = { git = "https://github.com/baloo/crypto-bigint.git", branch = "baloo/push-qmwlxxnxqywl" } diff --git a/src/key.rs b/src/key.rs index b5d7e258..b9778282 100644 --- a/src/key.rs +++ b/src/key.rs @@ -144,9 +144,9 @@ impl Zeroize for PrecomputedValues { fn zeroize(&mut self) { self.dp.zeroize(); self.dq.zeroize(); - // TODO: once these have landed in crypto-bigint - // self.p_params.zeroize(); - // self.q_params.zeroize(); + self.qinv.zeroize(); + self.p_params.zeroize(); + self.q_params.zeroize(); } }