diff --git a/Cargo.lock b/Cargo.lock index a3452ce62..48027b191 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -158,9 +158,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-pre.2" +version = "0.7.0-pre.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87a5061ea0870b06f7fdd5a0f7268e30c04de1932c148cca0ce5c79a88d18bed" +checksum = "f727d84cf16cb51297e4388421e2e51b2f94ffe92ee1d8664d81676901196fa3" dependencies = [ "hybrid-array", "num-traits", @@ -589,16 +589,6 @@ dependencies = [ "hex-literal", "rand_core", "sha2", - "signature_derive", -] - -[[package]] -name = "signature_derive" -version = "2.2.0" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.98", ] [[package]] diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index e936b45bf..32c103e37 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -18,7 +18,7 @@ and public/secret keys composed thereof. [dependencies] base16ct = "0.2" -crypto-bigint = { version = "=0.7.0-pre.2", default-features = false, features = ["rand_core", "hybrid-array", "zeroize"] } +crypto-bigint = { version = "=0.7.0-pre.3", default-features = false, features = ["rand_core", "hybrid-array", "zeroize"] } hybrid-array = { version = "0.3", default-features = false, features = ["zeroize"] } rand_core = { version = "0.9.0", default-features = false } subtle = { version = "2.6", default-features = false } diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 020795544..6e92c27ef 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -333,7 +333,7 @@ impl Reduce for Scalar { type Bytes = FieldBytes; fn reduce(w: U256) -> Self { - let (r, underflow) = w.sbb(&MockCurve::ORDER, Limb::ZERO); + let (r, underflow) = w.borrowing_sub(&MockCurve::ORDER, Limb::ZERO); let underflow = Choice::from((underflow.0 >> (Limb::BITS - 1)) as u8); let reduced = U256::conditional_select(&w, &r, !underflow); Self(ScalarPrimitive::new(reduced).unwrap())