summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2023-09-05 15:50:23 -0400
committerPaul Duncan <pabs@pablotron.org>2023-09-05 15:50:23 -0400
commit96604132aa814c86bba2b6ba7e76b9439df4940d (patch)
treec27f8034f91346166e68a0822d1253d9e2d8dc9f
parentf6309d8dff9b17a42d2983fc2aa5613909a839e8 (diff)
downloadsha3-96604132aa814c86bba2b6ba7e76b9439df4940d.tar.bz2
sha3-96604132aa814c86bba2b6ba7e76b9439df4940d.zip
sha3.c: permute() pass correct round to iota() for turboshake
-rw-r--r--sha3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha3.c b/sha3.c
index 6fcb99e..07f1c82 100644
--- a/sha3.c
+++ b/sha3.c
@@ -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);
}
}