Skip to content

Commit f26fcc4

Browse files
authored
Don't provide default impl of bits_vartime (#732)
1 parent f91a2da commit f26fcc4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/traits.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,7 @@ pub trait BitOps {
669669

670670
/// Calculate the number of bits required to represent a given number in variable-time with
671671
/// respect to `self`.
672-
fn bits_vartime(&self) -> u32 {
673-
self.bits_precision() - self.leading_zeros_vartime()
674-
}
672+
fn bits_vartime(&self) -> u32;
675673

676674
/// Sets the bit at `index` to 0 or 1 depending on the value of `bit_value`,
677675
/// variable time in `self`.

0 commit comments

Comments
 (0)