You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 2024-12-16 @prestwich wrote in e657576 “Merge pull request #402 from recmo/recmo/montgomery”:
Ideally this turns into a cmov, which makes the whole mul_redc constant
time.
#[inline]#[must_use]#[allow(clippy::needless_bitwise_bool)]fn reduce1_carry<constN:usize>(value:[u64;N],modulus:[u64;N],carry:bool) -> [u64;N]{let(reduced, borrow) = sub(value, modulus);// TODO: Ideally this turns into a cmov, which makes the whole mul_redc constant// time.if carry | !borrow {
reduced
}else{
value
}
On 2024-12-16 @prestwich wrote in
e657576
“Merge pull request #402 from recmo/recmo/montgomery”:Ideally this turns into a cmov, which makes the whole mul_redc constant
time.
From
src/algorithms/mul_redc.rs:130
The text was updated successfully, but these errors were encountered: