aboutsummaryrefslogtreecommitdiffstats
path: root/digest.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-26 12:02:53 +0100
committerMattias Andrée <maandree@kth.se>2022-02-26 12:02:53 +0100
commit5d36b9c7ed3c5790060731bb43b5ce74e04d856d (patch)
treecc7218b850253b996fa5e87cb191b348cf53309e /digest.c
parentMerge pull request #18 from oyheskes/remove-unused-variables (diff)
downloadlibkeccak-5d36b9c7ed3c5790060731bb43b5ce74e04d856d.tar.gz
libkeccak-5d36b9c7ed3c5790060731bb43b5ce74e04d856d.tar.bz2
libkeccak-5d36b9c7ed3c5790060731bb43b5ce74e04d856d.tar.xz
Remove useless restricts
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--digest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/digest.c b/digest.c
index d625d62..a7b7a62 100644
--- a/digest.c
+++ b/digest.c
@@ -663,7 +663,7 @@ libkeccak_digest(struct libkeccak_state *restrict state, const void *restrict ms
* @param times The number of rounds
*/
void
-libkeccak_simple_squeeze(register struct libkeccak_state *restrict state, register long int times)
+libkeccak_simple_squeeze(register struct libkeccak_state *state, register long int times)
{
while (times--)
libkeccak_f(state);
@@ -677,7 +677,7 @@ libkeccak_simple_squeeze(register struct libkeccak_state *restrict state, regist
* @param times The number of digests
*/
void
-libkeccak_fast_squeeze(register struct libkeccak_state *restrict state, register long int times)
+libkeccak_fast_squeeze(register struct libkeccak_state *state, register long int times)
{
times *= (state->n - 1) / state->r + 1;
while (times--)