Skip to content

Commit

Permalink
keccak_p: improve efficiency of Theta phase (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored Sep 23, 2024
1 parent 7b71968 commit 7a6ee9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keccak/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ pub fn keccak_p<L: LaneSize>(state: &mut [L; PLEN], round_count: usize) {
});

unroll5!(x, {
let t1 = array[(x + 4) % 5];
let t2 = array[(x + 1) % 5].rotate_left(1);
unroll5!(y, {
let t1 = array[(x + 4) % 5];
let t2 = array[(x + 1) % 5].rotate_left(1);
state[5 * y + x] ^= t1 ^ t2;
});
});
Expand Down

0 comments on commit 7a6ee9c

Please sign in to comment.