diff options
author | Paul Duncan <pabs@pablotron.org> | 2023-09-05 15:50:23 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2023-09-05 15:50:23 -0400 |
commit | 96604132aa814c86bba2b6ba7e76b9439df4940d (patch) | |
tree | c27f8034f91346166e68a0822d1253d9e2d8dc9f | |
parent | f6309d8dff9b17a42d2983fc2aa5613909a839e8 (diff) | |
download | sha3-96604132aa814c86bba2b6ba7e76b9439df4940d.tar.bz2 sha3-96604132aa814c86bba2b6ba7e76b9439df4940d.zip |
sha3.c: permute() pass correct round to iota() for turboshake
-rw-r--r-- | sha3.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -178,7 +178,7 @@ static inline void permute(uint64_t a[static 25], const size_t num_rounds) { rho(a); pi(a); chi(a); - iota(a, i); + iota(a, 24 - num_rounds + i); } } |