Skip to content

Commit

Permalink
Don't provide default impl of bits_vartime
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdplm committed Jan 9, 2025
1 parent f91a2da commit c6ff888
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,9 +669,7 @@ pub trait BitOps {

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

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

0 comments on commit c6ff888

Please sign in to comment.