Skip to content

Commit

Permalink
Update circuit/algorithms/src/keccak/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Howard Wu <[email protected]>
Signed-off-by: Alessandro Coglio <[email protected]>
  • Loading branch information
acoglio and howardwu authored Sep 19, 2023
1 parent 7504b39 commit 48d57c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circuit/algorithms/src/keccak/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<E: Environment, const TYPE: u8, const VARIANT: usize> Keccak<E, TYPE, VARIA
let mut x: usize = 1;
let mut y: usize = 0;

for t in 0..24 {
for t in 0..=23 {
let rotr = ((t + 1) * (t + 2) / 2) % 64;
rotl[x + (y * MODULO)] = (64 - rotr) % 64;

Expand Down

0 comments on commit 48d57c8

Please sign in to comment.