Skip to content

Commit 73ffc40

Browse files
authored
chore(deps): bump crypto-bigint to 0.7.0-pre.3 (#1845)
1 parent 74ee4ef commit 73ffc40

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

elliptic-curve/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ and public/secret keys composed thereof.
1818

1919
[dependencies]
2020
base16ct = "0.2"
21-
crypto-bigint = { version = "=0.7.0-pre.2", default-features = false, features = ["rand_core", "hybrid-array", "zeroize"] }
21+
crypto-bigint = { version = "=0.7.0-pre.3", default-features = false, features = ["rand_core", "hybrid-array", "zeroize"] }
2222
hybrid-array = { version = "0.3", default-features = false, features = ["zeroize"] }
2323
rand_core = { version = "0.9.0", default-features = false }
2424
subtle = { version = "2.6", default-features = false }

elliptic-curve/src/dev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl Reduce<U256> for Scalar {
333333
type Bytes = FieldBytes;
334334

335335
fn reduce(w: U256) -> Self {
336-
let (r, underflow) = w.sbb(&MockCurve::ORDER, Limb::ZERO);
336+
let (r, underflow) = w.borrowing_sub(&MockCurve::ORDER, Limb::ZERO);
337337
let underflow = Choice::from((underflow.0 >> (Limb::BITS - 1)) as u8);
338338
let reduced = U256::conditional_select(&w, &r, !underflow);
339339
Self(ScalarPrimitive::new(reduced).unwrap())

0 commit comments

Comments
 (0)