aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-07 00:47:37 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-07 00:47:37 +0100
commitc549744ea46402aab044b551aa07655ad0cc3b90 (patch)
treeb900ffc391cf26b325dd640ae7c1071acdef9906 /src
parentm + optimisations (diff)
downloadlibkeccak-c549744ea46402aab044b551aa07655ad0cc3b90.tar.gz
libkeccak-c549744ea46402aab044b551aa07655ad0cc3b90.tar.bz2
libkeccak-c549744ea46402aab044b551aa07655ad0cc3b90.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libkeccak/digest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libkeccak/digest.c b/src/libkeccak/digest.c
index 62d615b..c2a7d6f 100644
--- a/src/libkeccak/digest.c
+++ b/src/libkeccak/digest.c
@@ -409,11 +409,12 @@ int libkeccak_digest(libkeccak_state_t* restrict state, const char* restrict msg
size_t bits, const char* restrict suffix, char* restrict hashsum)
{
/* TODO optimise function */
+ char* restrict new;
long rr = state->r >> 3;
long ww = state->w >> 3;
long nn = (state->n + 7) >> 3;
- size_t ext, suffix_len = suffix ? __builtin_strlen(suffix) : 0;
- char* restrict new;
+ size_t suffix_len = suffix ? __builtin_strlen(suffix) : 0;
+ size_t ext;
long i;
if (msg == NULL)