We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a98af2e commit 68a2287Copy full SHA for 68a2287
src/uint/div.rs
@@ -84,7 +84,7 @@ impl<const LIMBS: usize> Uint<LIMBS> {
84
85
/// Computes `self` % `rhs`, returns the remainder.
86
pub const fn rem(&self, rhs: &NonZero<Self>) -> Self {
87
- self.div_rem_vartime(rhs).1
+ self.div_rem(rhs).1
88
}
89
90
/// Computes `self` % `rhs`, returns the remainder in variable-time with respect to `rhs`.
@@ -211,7 +211,7 @@ impl<const LIMBS: usize> Uint<LIMBS> {
211
/// Perform checked reduction, returning a [`CtOption`] which `is_some`
212
/// only if the rhs != 0
213
pub fn checked_rem(&self, rhs: &Self) -> CtOption<Self> {
214
- NonZero::new(*rhs).map(|rhs| self.rem_vartime(&rhs))
+ NonZero::new(*rhs).map(|rhs| self.rem(&rhs))
215
216
217
0 commit comments