diff options
Diffstat (limited to 'vendor/crypto-bigint/src/uint/add_mod.rs')
-rw-r--r-- | vendor/crypto-bigint/src/uint/add_mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/crypto-bigint/src/uint/add_mod.rs b/vendor/crypto-bigint/src/uint/add_mod.rs index 70674f5e8..091ba4634 100644 --- a/vendor/crypto-bigint/src/uint/add_mod.rs +++ b/vendor/crypto-bigint/src/uint/add_mod.rs @@ -3,7 +3,7 @@ use crate::{AddMod, Limb, Uint}; impl<const LIMBS: usize> Uint<LIMBS> { - /// Computes `self + rhs mod p` in constant time. + /// Computes `self + rhs mod p`. /// /// Assumes `self + rhs` as unbounded integer is `< 2p`. pub const fn add_mod(&self, rhs: &Uint<LIMBS>, p: &Uint<LIMBS>) -> Uint<LIMBS> { @@ -21,7 +21,7 @@ impl<const LIMBS: usize> Uint<LIMBS> { w.wrapping_add(&p.bitand(&mask)) } - /// Computes `self + rhs mod p` in constant time for the special modulus + /// Computes `self + rhs mod p` for the special modulus /// `p = MAX+1-c` where `c` is small enough to fit in a single [`Limb`]. /// /// Assumes `self + rhs` as unbounded integer is `< 2p`. |