Skip to content

Commit 789d2be

Browse files
authored
elliptic-curve: bump crypto-bigint to v0.7.0-rc.8 (#2025)
This notably enables the `subtle` feature of `hybrid-array`. This apparently broke `digest` where previously the unsized coercion was working until an explicit impl was available. So this PR also includes a small fix to `digest`.
1 parent 63520ae commit 789d2be

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Cargo.lock

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

digest/src/mac.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl<T: Update + FixedOutput + MacMarker> Mac for T {
133133
if n != Self::OutputSize::USIZE {
134134
return Err(MacError);
135135
}
136-
let choice = self.finalize_fixed().ct_eq(tag);
136+
let choice = self.finalize_fixed().as_slice().ct_eq(tag);
137137
if choice.into() { Ok(()) } else { Err(MacError) }
138138
}
139139

@@ -146,7 +146,7 @@ impl<T: Update + FixedOutput + MacMarker> Mac for T {
146146
if n != Self::OutputSize::USIZE {
147147
return Err(MacError);
148148
}
149-
let choice = self.finalize_fixed_reset().ct_eq(tag);
149+
let choice = self.finalize_fixed_reset().as_slice().ct_eq(tag);
150150
if choice.into() { Ok(()) } else { Err(MacError) }
151151
}
152152

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.3"
21-
crypto-bigint = { version = "0.7.0-rc.6", default-features = false, features = ["rand_core", "hybrid-array", "zeroize"] }
21+
crypto-bigint = { version = "0.7.0-rc.8", default-features = false, features = ["rand_core", "hybrid-array", "zeroize"] }
2222
hybrid-array = { version = "0.4", default-features = false, features = ["zeroize"] }
2323
rand_core = { version = "0.9.0", default-features = false }
2424
subtle = { version = "2.6", default-features = false }

0 commit comments

Comments
 (0)