diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-07 00:47:37 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-07 00:47:37 +0100 |
commit | c549744ea46402aab044b551aa07655ad0cc3b90 (patch) | |
tree | b900ffc391cf26b325dd640ae7c1071acdef9906 /src | |
parent | m + optimisations (diff) | |
download | libkeccak-c549744ea46402aab044b551aa07655ad0cc3b90.tar.gz libkeccak-c549744ea46402aab044b551aa07655ad0cc3b90.tar.bz2 libkeccak-c549744ea46402aab044b551aa07655ad0cc3b90.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libkeccak/digest.c | 5 |
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) |