Skip to content

Commit

Permalink
Fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rustaceanrob committed Mar 13, 2024
1 parent 58a6056 commit 38e99f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/poly1305.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ impl Poly1305 {
// described well in an article here: https://loup-vaillant.fr/tutorials/poly1305-design
let mut t = [0; 5];
for i in 0..5 {
for j in 0..5 {
for (j, t) in t.iter_mut().enumerate() {
let modulus: u64 = if i > j {
5
} else {
1
};
let start = (5 - i) % 5;
t[j] += modulus * self.r[i] as u64 * self.acc[(start + j) % 5] as u64;
*t += modulus * self.r[i] as u64 * self.acc[(start + j) % 5] as u64;
}
}
// carry
Expand Down

0 comments on commit 38e99f8

Please sign in to comment.