keccak_p: improve efficiency of Theta phase (#80)

This commit is contained in:
Thomas Coratger 2024-09-23 07:28:11 +02:00 committed by GitHub
parent 7b7196894d
commit 7a6ee9c1f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
});
});