]> git.lizzy.rs Git - PAKEs.git/blobdiff - srp/src/tools.rs
srp: fix some low-hanging clippy warnings
[PAKEs.git] / srp / src / tools.rs
index 8cb69109df3ecd7525e1454807352592b998d5a5..4fc5db9f19fdb74d5bd11aa662aa581fe46a0139 100644 (file)
@@ -12,7 +12,7 @@ pub fn powm(base: &BigUint, exp: &BigUint, modulus: &BigUint) -> BigUint {
         if &exp % &two == one {
             result = (result * &base) % modulus;
         }
-        exp = exp >> 1;
+        exp >>= 1;
         base = (&base * &base) % modulus;
     }
     result