Skip to content

Commit b0e2657

Browse files
authored
Make Rem impl on Uint constant-time (#742)
It was previously using `rem_vartime` as introduced in #466. This goes against the "constant time by default" guarantees of this library.
1 parent 1a55153 commit b0e2657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uint/div.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ impl<const LIMBS: usize> Rem<NonZero<Uint<LIMBS>>> for Uint<LIMBS> {
861861
type Output = Uint<LIMBS>;
862862

863863
fn rem(self, rhs: NonZero<Uint<LIMBS>>) -> Self::Output {
864-
Self::rem_vartime(&self, &rhs)
864+
Self::rem(&self, &rhs)
865865
}
866866
}
867867

0 commit comments

Comments
 (0)