dsa: bump crypto-bigint to v0.7.0-rc.28 (#1233)

Updates to use `ConcatenatingMul`
This commit is contained in:
Tony Arcieri
2026-02-26 16:14:01 -07:00
committed by GitHub
parent b560da796b
commit c7fab72db3
4 changed files with 7 additions and 7 deletions
Generated
+2 -2
View File
@@ -289,9 +289,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
[[package]]
name = "crypto-bigint"
version = "0.7.0-rc.27"
version = "0.7.0-rc.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b43308b9b6a47554f4612d5b1fb95ff935040aa3927dd42b1d6cbc015a262d96"
checksum = "96dacf199529fb801ae62a9aafdc01b189e9504c0d1ee1512a4c16bcd8666a93"
dependencies = [
"cpubits",
"ctutils",
+1 -1
View File
@@ -18,7 +18,7 @@ rust-version = "1.85"
[dependencies]
der = { version = "0.8", features = ["alloc"] }
digest = "0.11.0-rc.11"
crypto-bigint = { version = "0.7.0-rc.27", default-features = false, features = ["alloc", "zeroize"] }
crypto-bigint = { version = "0.7.0-rc.28", default-features = false, features = ["alloc", "zeroize"] }
crypto-primes = { version = "0.7.0-pre.9", default-features = false }
rfc6979 = { version = "0.5.0-rc.5" }
sha2 = { version = "0.11.0-rc.5", default-features = false }
+2 -2
View File
@@ -8,7 +8,7 @@ use crate::{
two,
};
use crypto_bigint::{
BoxedUint, NonZero, Odd, RandomBits, Resize,
BoxedUint, ConcatenatingMul, NonZero, Odd, RandomBits, Resize,
modular::{BoxedMontyForm, BoxedMontyParams},
};
use crypto_primes::{Flavor, is_prime};
@@ -47,7 +47,7 @@ pub(crate) fn common<R: CryptoRng + ?Sized>(
break 'gen_m m;
}
};
let rem = NonZero::new((two() * &*q).resize(m.bits_precision()))
let rem = NonZero::new(two().concatenating_mul(&*q).resize(m.bits_precision()))
.expect("[bug] 2 * NonZero can't be zero");
let mr = &m % &rem;
+2 -2
View File
@@ -5,7 +5,7 @@
use crate::{Components, Signature, two};
use core::cmp::min;
use crypto_bigint::{
BoxedUint, NonZero, Resize,
BoxedUint, ConcatenatingMul, NonZero, Resize,
modular::{BoxedMontyForm, BoxedMontyParams},
};
use digest::{Update, block_api::EagerHash};
@@ -102,7 +102,7 @@ impl VerifyingKey {
let v1 = g_form.pow(&u1).retrieve();
let v2 = y_form.pow(&u2).retrieve();
let v3 = v1 * v2;
let v3 = v1.concatenating_mul(&v2);
let p = p.resize(v3.bits_precision());
let q = q.resize(v3.bits_precision());
let v4 = v3 % p.as_nz_ref();