From c6ff888a4727307d9c305b25a0c0eb49fc1ec8fe Mon Sep 17 00:00:00 2001 From: David Palm Date: Thu, 9 Jan 2025 20:49:23 +0100 Subject: [PATCH] Don't provide default impl of bits_vartime --- src/traits.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/traits.rs b/src/traits.rs index 01f47769..44c64352 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -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`.